/* Lion OTT — customer area (/account). Loaded after app.css and shop.css. */

.acc { padding: 40px 0 70px; background: var(--bg); min-height: 60vh; }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.acc-head .h2 { font-size: clamp(24px, 3vw, 32px); }
.acc-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.acc-user strong { display: block; color: var(--ink); font-size: 15px; }
.acc-user small { color: var(--muted); font-size: 13px; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 900 18px var(--head); flex: none; }

.acc-nav { display: flex; gap: 6px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 5px; overflow-x: auto; }
.acc-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.acc-nav a:hover { background: var(--p50); color: var(--p700); }
.acc-nav a.on { background: var(--grad-btn); color: #fff; }
.acc-nav b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font: 700 11px/20px var(--body); text-align: center; }

.acc-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.acc-grid-1, .acc-narrow { max-width: 720px; }
.acc-main, .acc-side { display: grid; gap: 22px; align-content: start; }
.acc-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; box-shadow: 0 4px 20px -14px rgba(76, 29, 149, .2); }
.acc-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.acc-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.acc-card-head h2, .acc-card-head p { margin: 0; }
.acc-card-head .btn, .acc-card-head .pill { margin-left: auto; }
.acc-card .center { text-align: center; }
.acc-alt { text-align: center; margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }

.acc-verify { display: flex; gap: 16px; align-items: flex-start; border-color: #fde68a; background: #fffbeb; margin-bottom: 22px; }
.acc-verify .ic { background: #fef3c7; color: #b45309; }
.acc-verify h2 { margin-bottom: 4px; }
.acc-verify p { margin-bottom: 12px; }

.sub-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.sub-top h2 { margin: 0; font-size: 22px; }
.sub-top .pill { margin-left: auto; }
.creds { margin: 0 0 18px; }
.creds > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.creds > div:last-child { border-bottom: 0; }
.creds dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.creds dd { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--p50); color: var(--p700); }
.icon-btn .i { width: 15px; height: 15px; }
.icon-btn.is-copied { background: #f0fdf4; border-color: #86efac; color: #15803d; }

.trial-form { display: grid; gap: 14px; margin-top: 16px; }
.trial-form .field { margin: 0; }
.trial-state { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--p50); border: 1px solid var(--p100); margin-top: 14px; }
.trial-state strong { color: var(--ink); }
.trial-state p { margin: 2px 0 0; }

.acc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.acc-table th { text-align: left; padding: 9px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); }
.acc-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); }
.acc-table tr:last-child td { border-bottom: 0; }

.acc-list { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.acc-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); }
.acc-list a:hover { background: var(--p50); }
.acc-list strong { display: block; color: var(--ink); font-size: 14.5px; }
.acc-list small { display: block; color: var(--muted); font-size: 12.5px; }
.acc-list-lg a { padding: 14px 12px; border: 1px solid var(--line-soft); }
.acc-list-right { text-align: right; flex: none; }
.dot-new { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font: 700 11px/18px var(--body); }

.dl-mini > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.dl-mini > div:last-child { border-bottom: 0; }
.dl-mini dt { color: var(--muted); }
.dl-mini dd { margin: 0; color: var(--ink); font-weight: 700; }

.stack-form { display: grid; gap: 14px; }
.stack-form .field { margin: 0; }
.stack-form .field > span { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.stack-form input, .stack-form select, .stack-form textarea { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; }
.stack-form textarea { resize: vertical; line-height: 1.55; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { outline: 0; border-color: var(--p500); background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, .14); }
.stack-form input:disabled { background: #f3f4f6; color: var(--muted); }
.hint-inline { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.tk-thread { display: grid; gap: 12px; margin: 18px 0 22px; }
.tk-msg { max-width: 88%; }
.tk-msg p { margin: 0; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.tk-msg time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tk-them p { background: var(--bg); border: 1px solid var(--line-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.tk-me { margin-left: auto; }
.tk-me p { background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.tk-me time { text-align: right; }
.tk-reply { border-top: 1px solid var(--line-soft); padding-top: 18px; }

.cf-turnstile, .g-recaptcha { min-height: 65px; }
.g-recaptcha { max-width: 100%; overflow: hidden; }

@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-user { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .acc { padding: 24px 0 50px; }
  .acc-card { padding: 20px 16px; }
  .creds > div { grid-template-columns: 1fr; gap: 4px; }
  .tk-msg { max-width: 100%; }
}

/* ---- Sign in / sign up ------------------------------------------------------- */
.acc-auth { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; max-width: 940px; }
.acc-auth-form h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.acc-auth-form > .muted { margin-bottom: 18px; font-size: 14.5px; }
.acc-auth-side { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 24px; }
.acc-auth-side h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.acc-auth-side p { font-size: 14.5px; }

/* .stack-form sets these labels to display:block, so say flex louder than that. */
.stack-form .field > span.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-link { margin-left: auto; font-weight: 600; font-size: 13px; }
.acc-auth-side .acc-alt { text-align: left; }

.checklist { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.checklist .i { width: 17px; height: 17px; color: var(--p600); flex: none; margin-top: 3px; }

.steps-num { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 12px; }
.steps-num li { font-size: 14.5px; }
.steps-num strong { display: block; color: var(--ink); }
.steps-num span { color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px) {
  .acc-auth { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---- Build your own package ------------------------------------------------- */
.bq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.bq-search { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; }
.bq-search .i { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.bq-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.bq-search input:focus { outline: 0; border-color: var(--p500); }
.bq-count { font-size: 13.5px; color: var(--muted); }
.bq-count b { color: var(--ink); font-weight: 800; }

.bq-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 460px; overflow-y: auto; }
.bq-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft);
  border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.bq-item:hover { border-color: var(--p300); background: var(--p50); }
.bq-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.bq-box { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--line); background: #fff; color: #fff; }
.bq-box .i { width: 13px; height: 13px; opacity: 0; }
.bq-item input:checked ~ .bq-box { background: var(--p600); border-color: var(--p600); }
.bq-item input:checked ~ .bq-box .i { opacity: 1; }
.bq-item input:focus-visible ~ .bq-box { outline: 2px solid var(--p500); outline-offset: 2px; }
.bq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq-empty { color: var(--muted); font-size: 14px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check-line input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--p600, #7c3aed); }
.stack-form .check-line input { width: 18px; height: 18px; padding: 0; background: #fff; box-shadow: none; }

/* The page behind the unsubscribe link in marketing email. */
.unsub-card { text-align: center; }
.unsub-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--p50); color: var(--p700); margin-bottom: 10px; }

/* "Link not working?" under a subscription: a quiet disclosure, a small form inside. */
.link-req { margin: 0 0 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.link-req summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14.5px; color: var(--p700); }
.link-req summary::-webkit-details-marker { display: none; }
.link-req summary .i { width: 17px; height: 17px; }
.link-req form { padding: 0 14px 14px; gap: 10px; }
.link-req label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.link-req select, .link-req textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 500; color: var(--ink); }
.creds .mono { overflow-wrap: anywhere; }

/* Review of a closed ticket */
.tk-review { display: grid; gap: 10px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--p100); border-radius: 14px; background: var(--p50); }
.tk-review-q { margin: 0; font-weight: 700; color: var(--ink); }
.tk-review-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-review-thumbs label { cursor: pointer; }
.tk-review-thumbs input { position: absolute; opacity: 0; pointer-events: none; }
.tk-review-thumbs span { display: block; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-weight: 700; }
.tk-review-thumbs input:checked + span { border-color: var(--p500); color: var(--p800); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.tk-review-thumbs input:focus-visible + span { outline: 2px solid var(--p500); outline-offset: 2px; }
.tk-review textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff; }
.tk-review .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.tk-review button { justify-self: start; }
.tk-reviewed { margin: 0 0 16px; }

/* Screenshots in tickets */
.tk-img { display: block; max-width: 320px; margin: 0 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); background: #fff; }
.tk-me .tk-img { margin-left: auto; }
.tk-img img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.tk-img-gone { font-style: italic; color: var(--muted); font-size: 13px; }
.tk-file span { display: inline-flex; align-items: center; gap: 6px; }
.tk-file span .i { width: 16px; height: 16px; }
.tk-file input[type=file] { font-size: 14px; }

/* Your data: download and delete */
.acc-data form { margin: 10px 0 0; }
.acc-erase { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.acc-erase summary { cursor: pointer; font-weight: 700; color: #b91c1c; font-size: 14px; }
.acc-erase .stack-form { margin-top: 10px; }
.btn-danger { background: #dc2626; color: #fff; border: 0; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
