/* kudikiuprekes.lt account v2 (login / register / password / profile). Page additions only (tokens/base in home.css). 2026-09-23 */
@font-face { font-family: "Nunito Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"), local("Roboto"); size-adjust: 86%; ascent-override: 117.5%; descent-override: 41%; line-gap-override: 0%; }
body.accv2-page { --font: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.accv2 { padding: 24px 0 48px; }

/* flash (same look as cart v2) */
.v2-flash-list { display: grid; gap: 8px; margin: 0 auto 16px; max-width: 960px; }
.v2-flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--mint); color: #145c33; font-weight: 600; }
.v2-flash svg { flex: none; margin-top: 2px; }
.v2-flash.is-error { background: var(--blush); color: #8f2419; }

/* ---------- auth card ---------- */
.acc-card { max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 20px; }
.acc-card-wide { max-width: 680px; }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: var(--pill); background: var(--sky); }
.acc-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--pill); font-weight: 800; color: var(--ink-soft) !important; text-decoration: none !important; }
.acc-tab.is-on { background: var(--surface); color: var(--primary) !important; box-shadow: var(--shadow-sm); }
.acc-card h1 { font-size: 26px; font-weight: 800; }
.acc-lead { color: var(--ink-soft); margin: 6px 0 18px; }
.acc-err { padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--blush); color: #8f2419; font-weight: 600; }

.acc-form { display: grid; gap: 14px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font-size: 14px; font-weight: 700; color: var(--ink); }
.req { color: var(--danger); }
.fld input {
    width: 100%; min-height: 48px; padding: 10px 14px;
    border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff;
    font: 600 16px var(--font); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.fld input::placeholder { color: #6b7c88; font-weight: 400; }
.fld input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 119, 168, .25); }
.fld.is-bad input { border-color: var(--danger); background: #fffafa; }
.fld-err { margin: 0; font-size: 13px; font-weight: 700; color: var(--danger); }
.fld-hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.pw { position: relative; }
.pw input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-width: 72px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: var(--sky); color: var(--primary); font-weight: 800; font-size: 14px; cursor: pointer; }
.pw-toggle:hover { background: #d9f0fb; }

.acc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.acc-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.chk { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.chk input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.acc-checks { display: grid; gap: 2px; }
.acc-captcha { min-height: 78px; overflow: hidden; }
.acc-submit { width: 100%; font-weight: 800; }
.acc-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted); font-size: 14px; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acc-social { display: grid; gap: 8px; }
.acc-soc { width: 100%; background: #fff; border: 2px solid var(--line); color: var(--ink) !important; }
.acc-soc:hover { border-color: var(--primary); }
.acc-soc.is-fb::before, .acc-soc.is-g::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.acc-soc.is-fb::before { background: #1877f2; }
.acc-soc.is-g::before { background: #ea4335; }
.acc-foot { margin: 18px 0 0; text-align: center; color: var(--ink-soft); }
.acc-foot a { font-weight: 800; }
.acc-admin { text-align: center; margin: 16px 0 0; font-size: 14px; }
.acc-admin a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft) !important; }

/* ---------- profile ---------- */
.prof-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av txt" "out out"; gap: 12px 14px; align-items: center; margin-bottom: 18px; }
.prof-avatar { grid-area: av; width: 56px; height: 56px; border-radius: 50%; background: var(--butter); color: var(--ink); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.prof-head > div:nth-child(2) { grid-area: txt; min-width: 0; }
.prof-head h1 { font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.prof-meta { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.prof-logout { grid-area: out; justify-self: start; min-height: 44px; }

.prof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.prof-nav { margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; }
.v2 ul.prof-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.prof-tabs::-webkit-scrollbar { display: none; }
.prof-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink) !important; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.prof-tab svg { color: var(--primary); flex: none; }
.prof-tab.is-on { background: var(--primary); color: #fff !important; }
.prof-tab.is-on svg { color: #fff; }
.prof-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.prof-body { min-width: 0; }
.prof-panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px 16px; margin-bottom: 16px; scroll-margin-top: 140px; }
.prof-panel:focus { outline: none; }
.v2 .prof-panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.prof-empty { text-align: center; padding: 24px 8px; color: var(--ink-soft); }
.prof-empty p { margin: 0 0 8px; }
.prof-empty strong { color: var(--ink); font-size: 18px; }
.prof-empty .btn { margin-top: 8px; }
.prof-rekv { margin-bottom: 14px; border-radius: var(--r-sm); background: var(--sky); padding: 0 14px; }
.prof-rekv > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.prof-rekv-body { padding-bottom: 12px; font-size: 14px; overflow-wrap: anywhere; }

/* orders */
.v2 ul.ord-list { display: grid; gap: 14px; }
.ord { border: 2px solid var(--line); border-radius: var(--r); padding: 14px; }
.ord-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.v2 .ord-no { font-size: 17px; font-weight: 800; }
.ord-date { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.ord-status { flex: 0 1 auto; max-width: 100%; padding: 4px 12px; border-radius: var(--pill); background: var(--sky); color: var(--primary); font-size: 13px; font-weight: 800; }
.ord-status.tone-ok { background: var(--mint); color: #145c33; }
.ord-status.tone-no { background: var(--blush); color: #8f2419; }
.ord-status.tone-wait { background: var(--butter); color: #6b4a00; }
.v2 ul.ord-items { display: grid; gap: 8px; margin: 12px 0; }
.ord-item { display: flex; gap: 10px; align-items: center; }
.ord-item img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; flex: none; }
.ord-item-b { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.ord-item-b a, .ord-item-b > span:first-child { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.ord-item-m { color: var(--ink-soft); }
.ord-disc { color: var(--ok); }
.ord-sum { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.ord-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ord-sum dt { color: var(--ink-soft); }
.ord-sum dd { margin: 0; font-weight: 700; white-space: nowrap; }
.ord-total { font-size: 16px; }
.ord-total dt { color: var(--ink); font-weight: 800; }
.ord-total dd { font-weight: 800; }
.ord-track { margin: 8px 0 0; font-size: 14px; }
.ord-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.ord-pager .btn { min-height: 44px; }

/* wishlist */
.v2 ul.wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wish-cell { position: relative; display: flex; flex-direction: column; }
.wish-cell .pc { flex: 1; }
.wish-var { margin: 6px 4px 0; font-size: 13px; color: var(--ink-soft); }
.wish-del { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--ink) !important; }
.wish-del:hover { background: var(--blush); color: var(--danger) !important; }

/* notifications */
.v2 ul.ntf-list { display: grid; gap: 10px; }
.ntf { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px; border: 2px solid var(--line); border-radius: var(--r); }
.ntf img { width: 64px; height: 64px; object-fit: contain; }
.ntf-b { display: flex; flex-direction: column; min-width: 0; }
.ntf-b a, .ntf-b > span:first-child { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ntf-m { font-size: 14px; color: var(--ink-soft); }
.ntf-m .ok { color: var(--ok); font-weight: 700; }
.ntf .btn { grid-column: 1 / -1; justify-self: start; min-height: 44px; }

/* settings */
.set-box { padding: 16px 0; border-top: 1px solid var(--line); }
.set-box:first-of-type { border-top: 0; padding-top: 0; }
.v2 .set-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.set-note { margin: 0 0 12px; color: var(--ink-soft); }
.set-act { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-danger-soft { background: var(--blush); color: #8f2419 !important; }
.btn-danger-soft:hover { background: #fbdde1; }

/* confirm dialog */
.cv-dialog { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cv-dialog-back { position: absolute; inset: 0; background: rgba(20, 28, 36, .5); }
.cv-dialog-box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.cv-dialog-t { margin: 0 0 18px; font-size: 18px; font-weight: 800; }
.cv-dialog-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cv-dialog-act .btn { flex: 1 1 140px; }

@media (min-width: 560px) {
    .acc-card { padding: 32px; }
    .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-grid .span-2 { grid-column: 1 / -1; }
    .acc-social { grid-template-columns: 1fr 1fr; }
    .acc-submit { width: auto; min-width: 220px; justify-self: start; }
    .acc-card:not(.acc-card-wide) .acc-submit { width: 100%; }
    .prof-head { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av txt out"; }
    .prof-logout { justify-self: end; }
    .v2 ul.wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ntf { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .ntf .btn { grid-column: auto; }
    .prof-panel { padding: 24px; }
}
@media (min-width: 960px) {
    .accv2 { padding-top: 32px; }
    .prof { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
    .prof-nav { position: sticky; top: 96px; margin: 0; padding: 0; background: transparent; }
    .v2 ul.prof-tabs { flex-direction: column; overflow: visible; }
    .prof-tab { width: 100%; border-radius: var(--r-sm); box-shadow: none; background: transparent; }
    .prof-tab:hover { background: var(--sky); }
    .prof-tab.is-on { background: var(--primary); }
    .prof-badge { margin-left: auto; }
    .v2 ul.wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prof-head h1 { font-size: 30px; }
}
@media (min-width: 1200px) {
    .v2 ul.wish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
