/* Můj účet */
.acc { width: min(880px, 100% - 32px); margin: 0 auto; }
.acc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.acc-head h1 { font-size: 44px; margin: 0; line-height: 1; }
.acc-head p { margin: 6px 0 0; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 30px; background: linear-gradient(135deg, var(--pink), var(--blue)); color: #0b0617; flex: none; box-shadow: 0 0 30px rgba(255,43,214,.4); }
.acc-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.acc-tabs a { padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.acc-tabs a:hover { color: #fff; text-decoration: none; }
.acc-tabs a.on { color: #fff; border-bottom-color: var(--pink); }
.acc-tabs i { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--pink); color: #0b0617; }
.acc-pane { display: none; }
.acc-pane.on { display: grid; gap: 16px; animation: accIn .35s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(8px); } }
.acc-h { font-family: var(--display); font-size: 22px; letter-spacing: 2px; text-transform: uppercase; margin: 6px 0 -6px; color: var(--blue); }
.acc-h.muted { color: var(--muted); }
.acc-empty svg { width: 80px; margin: 0 auto 8px; display: block; }
.acc-order { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.acc-order.past { opacity: .7; }
.acc-order-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acc-order-head img, .acc-order-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: linear-gradient(135deg, rgba(255,43,214,.3), rgba(43,210,255,.3)); }
.acc-order-img.gift-img { display: grid; place-items: center; color: var(--pink); }
.acc-order-img.gift-img svg { width: 30px; height: 30px; }
.acc-order-title { flex: 1; min-width: 180px; display: grid; }
.acc-order-title .display { font-size: 24px; color: #fff; line-height: 1.1; }
.acc-order-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-list { display: grid; }
.tk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.tk + .tk { border-top: 1px dashed var(--line); }
.tk-off { opacity: .55; }
.tk-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-actions { display: flex; gap: 6px; }
.tk-state { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.tk-state.used { background: rgba(255,80,80,.15); color: #ff7b7b; }
.tk-state.ok { background: rgba(43,210,255,.15); color: var(--blue); }
.tk-state.gift { background: rgba(255,43,214,.15); color: var(--pink); text-transform: none; letter-spacing: 0; }
.tk-state.wait { background: rgba(255,193,64,.16); color: #ffce7a; }
.acc-unpaid { border-color: rgba(255,193,64,.45); box-shadow: 0 0 24px rgba(255,193,64,.08); }
.acc-unpaid .acc-order-head { border-bottom: 0; padding-bottom: 4px; }
.acc-unpaid-note { margin: 0; padding: 0 16px 14px; }
/* posouvat se dá dál (úzké displeje), jen bez viditelné lišty */
.acc-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); scrollbar-width: none; -ms-overflow-style: none; }
.acc-table-wrap::-webkit-scrollbar { display: none; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th, .acc-table td { padding: 12px 14px; text-align: left; white-space: nowrap; }
/* název akce se smí zalomit, jinak dlouhý název vytlačí tabulku do posuvníku */
.acc-table td:nth-child(2) { white-space: normal; min-width: 150px; }
.acc-table th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.acc-table tr + tr td { border-top: 1px solid var(--line); }
.acc-table .r { text-align: right; }
.acc-form { display: grid; gap: 12px; max-width: 420px; }
.panel.danger { border-color: rgba(255,80,80,.35); }
.panel h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; letter-spacing: 1px; }
.ffield { position: relative; }
.ffield .input { padding-top: 22px; padding-bottom: 8px; }
.ffield label { position: absolute; left: 14px; top: 15px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .2s, font-size .2s, color .2s; }
.ffield .input:focus + label, .ffield .input:not(:placeholder-shown) + label { top: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
@media (max-width: 600px) { .acc-head h1 { font-size: 34px; } .acc-order-tools { width: 100%; } .tk-actions { width: 100%; } .tk-actions .btn { flex: 1; } }
.acc-head { position: relative; }
.acc-logout { position: absolute; right: 0; top: 8px; }
@media (max-width: 600px) { .acc-logout { position: static; margin-top: 8px; } }
/* Mobil: vše pod sebou, bez vodorovného posuvníku */
@media (max-width: 700px) {
  .acc-head { flex-direction: column; text-align: center; }
  .acc-head p { text-align: center; }
  .acc-logout { position: static; }
  .acc-tabs { flex-direction: column; gap: 4px; border-bottom: 0; overflow: visible; }
  .acc-tabs a { justify-content: center; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
  .acc-tabs a.on { border-color: var(--pink); background: rgba(255,43,214,.1); }
  .acc-order-head { flex-direction: column; text-align: center; }
  .acc-order-title { justify-items: center; }
  .acc-order-tools { justify-content: center; }
  .tk { flex-direction: column; text-align: center; }
  .tk-main { justify-content: center; }
  .tk-actions { justify-content: center; }
  .acc-table-wrap { overflow: visible; border: 0; background: none; }
  .acc-table, .acc-table tbody, .acc-table tr, .acc-table td { display: block; width: 100%; }
  .acc-table thead { display: none; }
  .acc-table tr { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 10px 0; margin-bottom: 10px; }
  .acc-table td { text-align: center; white-space: normal; padding: 6px 14px; border: 0 !important; }
  .acc-table td::before { content: attr(data-l); display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
  .acc-table td.r { text-align: center; }
  .acc-form { max-width: none; }
  .acc-form .row { justify-content: center; }
  .acc-h { text-align: center; }
}
@media (max-width: 700px) {
  .acc { width: calc(100% - 32px); }
  .acc-order-tools, .tk-actions { flex-direction: column; align-items: center; width: 100%; }
  .acc-order-tools .btn, .tk-actions .btn { width: min(100%, 280px); flex: none; justify-content: center; }
  .tk-main { flex-direction: column; gap: 6px; }
  .acc-tabs a { padding: 14px; font-size: 15px; }
  .acc-pane { gap: 14px; }
  .acc-empty .btn { width: min(100%, 280px); }
  .panel { padding: 18px 16px; }
}
.acc-tabs .acc-admin { margin-left: auto; color: var(--blue); border: 1px solid rgba(43,210,255,.4); border-radius: 999px; padding: 8px 14px; align-self: center; }
.acc-tabs .acc-admin:hover { background: rgba(43,210,255,.12); }
@media (max-width: 700px) { .acc-tabs .acc-admin { margin-left: 0; border-radius: 12px; padding: 14px; } }
@media (max-width: 700px) {
  .acc-logout { width: 100%; justify-content: center; padding: 14px; font-size: 15px; border-radius: 12px; }
  .acc-tabs { width: 100%; }
  .acc-tabs a, .acc-tabs .acc-admin { width: 100%; box-sizing: border-box; padding: 14px; font-size: 15px; border-radius: 12px; border: 1px solid var(--line); margin: 0; text-align: center; justify-content: center; }
  .acc-tabs .acc-admin { color: var(--blue); border-color: rgba(43,210,255,.4); }
}
