/* The account pages (sign-up /register and the account area /account), served by the account service beside the
   site's own css/site.css (the night navy, dawn gold and parchment of the site; the same .auth, .card and .field). Kept
   here, not in site.css: on the domain the site's files are deployed apart from the account service, and these pages
   must look right with the version of the service that answers them. */

/* the views and states switch with the hidden attribute (stronger than the site's display rules) */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ fields */
.field .hint-line { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.field .err { display: none; margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: #ff9c86; }
.field.bad input, .field.bad select { border-color: rgba(255, 140, 110, 0.75); }
.field.bad .err { display: block; }
.field.bad .hint-line { display: none; }
.field select { width: 100%; padding: 13px 40px 13px 14px; appearance: none; background: #090b18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6bb6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  border: 1px solid rgba(230, 187, 108, 0.28); border-radius: 2px; color: var(--parch); font: 16.5px "Text", sans-serif; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s; }
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 187, 108, 0.18); }
.field select:invalid { color: var(--muted); }
.field select option { background: #0c0e1c; color: var(--parch); }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

/* the password with its eye and its strength */
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw .eye { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; padding: 0; background: none; border: 0;
  color: var(--muted); cursor: pointer; transition: color 0.15s; }
.pw .eye:hover, .pw .eye[aria-pressed="true"] { color: var(--gold-hi); }
.pw .eye svg { width: 20px; height: 20px; }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.meter[data-level="0"] { display: none; }
.meter .bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter .bars i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.meter .label { min-width: 70px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; color: var(--muted); }
.meter[data-level="1"] .bars i:nth-child(-n+1) { background: #e0735a; }
.meter[data-level="2"] .bars i:nth-child(-n+2) { background: #e3a35a; }
.meter[data-level="3"] .bars i:nth-child(-n+3) { background: #c9c36a; }
.meter[data-level="4"] .bars i { background: #8fd18a; }
.meter[data-level="1"] .label { color: #e0735a; }
.meter[data-level="2"] .label { color: #e3a35a; }
.meter[data-level="3"] .label { color: #c9c36a; }
.meter[data-level="4"] .label { color: #8fd18a; }

/* the captcha's box (only when the server has one) */
.captcha { display: flex; justify-content: center; min-height: 65px; margin: 4px 0 10px; }
.captcha[hidden] { display: none; }

/* links under a form */
.card .links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid rgba(230, 187, 108, 0.12); font-size: 14.5px; color: var(--muted); }
.card .links-row a { color: var(--gold); text-decoration: none; }
.card .links-row a:hover { color: var(--gold-hi); text-decoration: underline; }
.btn-link { padding: 0; background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; }
.btn-link:hover { color: var(--gold-hi); text-decoration: underline; }
.btn-link[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

/* ------------------------------------------------------------------ a card's result (e-mail sent, confirmed, link expired) */
.state { text-align: center; }
.state .seal { display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 18px; border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, rgba(242, 166, 90, 0.22), rgba(18, 21, 42, 0.95) 70%);
  box-shadow: 0 0 0 6px rgba(230, 187, 108, 0.06), 0 12px 30px rgba(0, 0, 0, 0.5); }
.state .seal svg { width: 38px; height: 38px; }
/* on a result card the seal sits where a form card has its crest, on the card's top edge */
.card.state > .seal { margin: -82px auto 22px; }
.state .seal.bad { border-color: #d77a64; color: #ffb3a1; background: radial-gradient(circle at 50% 35%, rgba(224, 115, 90, 0.2), rgba(18, 21, 42, 0.95) 70%); }
.state h3 { margin: 0 0 10px; }
.state p { margin: 0 0 12px; font-size: 16px; color: var(--text); }
.state p.small { font-size: 14.5px; color: var(--muted); }
.addr { color: var(--parch); font-weight: 600; overflow-wrap: anywhere; }
.state .btn { margin-top: 10px; }
.spinner { width: 34px; height: 34px; margin: 26px auto; border: 3px solid rgba(230, 187, 108, 0.2); border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ the account area (logged in) */
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.acct-head .who { display: flex; align-items: center; gap: 18px; }
.acct-head .who img { width: 62px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)); }
.acct-head h1 { margin: 6px 0 0; font-size: clamp(34px, 4.4vw, 52px); }
.acct { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; padding: 40px 0 110px; }
.acct .col { display: grid; gap: 28px; align-content: start; }
.pane { position: relative; padding: 30px 32px 28px; background: linear-gradient(180deg, #161a33, #10132a); border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.pane::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(230, 187, 108, 0.12); pointer-events: none; }
.pane h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 25px; }
.pane h3 svg { width: 22px; height: 22px; color: var(--gold-hi); flex: none; }
.pane .sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.pane .btn { margin-top: 6px; }
.pane form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pane .msg { text-align: left; margin-top: 10px; min-height: 0; }
.pane-forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
/* side by side, the two forms end with their buttons on the same line */
.pane-forms .pane { display: flex; flex-direction: column; }
.pane-forms form { flex: 1; display: flex; flex-direction: column; }
.pane-forms form .btn { align-self: flex-start; margin-top: auto; }
.pane-forms form .field:last-of-type { margin-bottom: 22px; }

.kv { margin: 6px 0 0; }
.kv div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(230, 187, 108, 0.1); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font: 600 12px/1.9 "Text", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; color: var(--parch); word-break: break-word; }
/* the e-mail gets the whole width (beside the label it broke mid-address); a very long one breaks at the @ */
.kv div.stack { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.kv .mail { display: block; margin-bottom: 8px; }
.kv .mail span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border: 1px solid; border-radius: 20px; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; }
.badge svg { width: 13px; height: 13px; }
.badge.ok { color: #a6e3a0; border-color: rgba(143, 209, 138, 0.45); background: rgba(143, 209, 138, 0.08); }
.badge.warn { color: #f3c27a; border-color: rgba(242, 166, 90, 0.5); background: rgba(242, 166, 90, 0.08); }
.notice { margin: 16px 0 0; padding: 14px 16px; border: 1px solid rgba(242, 166, 90, 0.45); border-radius: 2px; background: rgba(242, 166, 90, 0.07); font-size: 14.5px; }
.notice p { margin: 0 0 8px; }
.notice.danger { border-color: rgba(224, 115, 90, 0.55); background: rgba(224, 115, 90, 0.08); color: #ffc2b4; }
.pane .logout { width: 100%; margin-top: 22px; }

.chars { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.chars li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(9, 11, 24, 0.7); border: 1px solid rgba(230, 187, 108, 0.16); border-radius: 2px; }
.chars .ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--gold-lo); border-radius: 50%; color: var(--gold-hi);
  background: rgba(18, 21, 42, 0.9); }
.chars .ic svg { width: 20px; height: 20px; }
.chars b { display: block; color: var(--parch); font-weight: 600; }
.chars small { color: var(--muted); font-size: 14px; }
.chars .empty { justify-content: center; color: var(--muted); font-size: 15px; }

@media (max-width: 1100px) {
  .acct { grid-template-columns: 340px minmax(0, 1fr); }
  .pane-forms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pane { padding: 26px 20px 24px; }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ------------------------------------------------------------------ logged in: the banner with the two tabs (Minha conta |
   Suporte); the crumbs say "Suporte" only on that tab */
/* (the site's banner lays its children in a row: here the head and the tabs go one under the other) */
.acct-banner { min-height: 0; padding: 150px 0 0; flex-direction: column; align-items: stretch; }
.acct-tabs { display: flex; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.acct-tabs a { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 15px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 3px 3px 0 0; color: var(--muted); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: color 0.15s, background 0.15s; }
.acct-tabs a svg { width: 18px; height: 18px; flex: none; }
.acct-tabs a:hover { color: var(--parch); }
.acct-tabs a.active { margin-bottom: -1px; color: var(--gold-hi); border-color: var(--line); background: linear-gradient(180deg, #161a33, #10132a); }
.acct-tabs a.active::after { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #f2a65a; box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.22); }
.sup-only { display: none; }
.crumbs em { font-style: normal; color: var(--muted); }
body[data-view="support"] .sup-only { display: inline; }

/* ------------------------------------------------------------------ fields the support page adds */
.field textarea { width: 100%; min-height: 120px; padding: 13px 14px; background: #090b18; border: 1px solid rgba(230, 187, 108, 0.28); border-radius: 2px;
  color: var(--parch); font: 16.5px/1.55 "Text", sans-serif; resize: vertical; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 187, 108, 0.18); }
.field textarea::placeholder, .field input::placeholder { color: #6f6a82; }
.field.bad textarea, .field.bad .drop { border-color: rgba(255, 140, 110, 0.75); }
.field label .count { float: right; font-weight: 400; letter-spacing: 0.04em; }
.field label .opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.field select:disabled, .field input:disabled, .field textarea:disabled { opacity: 0.5; cursor: not-allowed; }
/* an image: the file input covers the box (a click or a file dropped on it) */
.drop { position: relative; display: flex; align-items: center; min-height: 88px; padding: 16px 18px; background: rgba(9, 11, 24, 0.6);
  border: 1px dashed rgba(230, 187, 108, 0.35); border-radius: 2px; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(230, 187, 108, 0.06); }
.drop.has-file { border-style: solid; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-empty { display: flex; align-items: center; gap: 14px; color: var(--muted); pointer-events: none; }
.drop-empty svg { width: 30px; height: 30px; flex: none; color: var(--gold); }
.drop-empty b { display: block; color: var(--parch); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.drop-empty small { font-size: 13.5px; }
.drop-full { display: flex; align-items: center; gap: 14px; width: 100%; }
.drop-full img { width: 88px; height: 60px; flex: none; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.drop-full > span { flex: 1; min-width: 0; }
.drop-full b { display: block; overflow: hidden; color: var(--parch); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.drop-full small { color: var(--muted); font-size: 13.5px; }
.drop-sm { min-height: 0; padding: 10px 14px; }
.drop-sm .drop-empty svg { width: 22px; height: 22px; }
.drop-sm .drop-empty b { font-size: 14.5px; }
.drop-sm .drop-full img { width: 56px; height: 40px; }
.pane form .actions { margin-top: 6px; }
.pane form .actions .small { color: var(--muted); font-size: 14px; }
.pane .notice:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ the support page: the account's tickets */
.sup-mine .sup-new { width: 100%; margin: 0 0 18px; }
.sup-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sup-list li.empty { padding: 16px 14px; border: 1px dashed rgba(230, 187, 108, 0.2); color: var(--muted); font-size: 15px; text-align: center; }
.sup-list button { display: grid; gap: 3px; width: 100%; padding: 12px 14px; background: rgba(9, 11, 24, 0.7); border: 1px solid rgba(230, 187, 108, 0.16);
  border-radius: 2px; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.sup-list button:hover { border-color: var(--line-strong); }
.sup-list li.active button { border-color: var(--gold); background: rgba(230, 187, 108, 0.08); }
.sup-list .row1 { display: flex; align-items: center; gap: 10px; }
.sup-list .row1 b { color: var(--gold); font: 17px "Title", serif; }
.sup-list .new { width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: #f2a65a; box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.22); }
.sup-list .subj { overflow: hidden; color: var(--parch); font-size: 15.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sup-list small { color: var(--muted); font-size: 13px; }
.sup-st { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid; border-radius: 20px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.sup-st.st-open { color: #f3c27a; border-color: rgba(242, 166, 90, 0.5); background: rgba(242, 166, 90, 0.08); }
.sup-st.st-answered { color: #a6e3a0; border-color: rgba(143, 209, 138, 0.45); background: rgba(143, 209, 138, 0.08); }
.sup-st.st-closed { color: var(--muted); border-color: rgba(156, 150, 173, 0.4); background: rgba(156, 150, 173, 0.06); }
.sup-safe h3 { font-size: 21px; }
.sup-safe p { margin: 8px 0 0; color: var(--text); font-size: 15px; }

/* the frequent questions */
.sup-search { position: relative; margin: 4px 0 24px; }
.sup-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sup-search input { width: 100%; padding: 13px 14px 13px 44px; background: #090b18; border: 1px solid rgba(230, 187, 108, 0.28); border-radius: 2px;
  color: var(--parch); font: 16.5px "Text", sans-serif; transition: border-color 0.15s, box-shadow 0.15s; }
.sup-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 187, 108, 0.18); }
.sup-faq h4 { margin: 28px 0 10px; font-size: 21px; }
.sup-faq h4:first-child { margin-top: 0; }
.sup-faq details { background: rgba(9, 11, 24, 0.6); border: 1px solid rgba(230, 187, 108, 0.14); border-radius: 2px; transition: border-color 0.15s; }
.sup-faq details + details { margin-top: 8px; }
.sup-faq details[open] { border-color: var(--line-strong); }
.sup-faq summary { position: relative; padding: 14px 48px 14px 18px; color: var(--parch); font-size: 16.5px; line-height: 1.45; list-style: none; cursor: pointer; }
.sup-faq summary::-webkit-details-marker { display: none; }
.sup-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font: 24px/1 "Title", serif;
  transition: transform 0.2s; }
.sup-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sup-faq summary:hover { color: var(--gold-hi); }
.sup-faq .ans { padding: 0 18px 16px; color: var(--text); font-size: 15.5px; }
.sup-faq .ans p { margin: 0; }
.sup-empty { margin: 0; padding: 20px; color: var(--muted); text-align: center; }
.sup-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 30px; padding: 22px 24px;
  border: 1px solid var(--line-strong); background: radial-gradient(circle at 0% 0%, rgba(242, 166, 90, 0.14), rgba(9, 11, 24, 0.6) 60%); }
.sup-cta b { display: block; color: var(--gold); font: 23px/1.2 "Title", serif; }
.sup-cta p { margin: 4px 0 0; color: var(--text); font-size: 15px; }
.pane .sup-cta .btn { margin-top: 0; }
.sup-back { display: inline-flex; gap: 6px; margin: -6px 0 16px; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* one ticket */
.sup-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(230, 187, 108, 0.12); }
.sup-head .msg { margin: 0 0 14px; text-align: left; }
.sup-id { color: var(--gold-lo); filter: brightness(1.4); font: 16px "Title", serif; letter-spacing: 0.06em; }
.pane .sup-head h3 { display: block; margin: 2px 0 12px; font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.sup-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sup-tag { padding: 1px 10px; border: 1px solid rgba(230, 187, 108, 0.25); border-radius: 20px; color: var(--text); font-size: 13px; line-height: 1.6; }
.sup-when { color: var(--muted); font-size: 13.5px; }
.sup-thread { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.sup-msg { display: flex; align-items: flex-start; gap: 12px; max-width: 86%; }
.sup-msg.me { flex-direction: row-reverse; margin-left: auto; }
.sup-msg .av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--gold-lo); border-radius: 50%; background: rgba(18, 21, 42, 0.95); }
.sup-msg .av img { width: 24px; }
.sup-msg .bubble { min-width: 0; padding: 12px 16px; background: rgba(9, 11, 24, 0.75); border: 1px solid rgba(230, 187, 108, 0.18); border-radius: 3px; }
.sup-msg.me .bubble { background: rgba(230, 187, 108, 0.08); border-color: rgba(230, 187, 108, 0.3); }
.sup-msg.team .bubble { border-left: 2px solid var(--gold); }
.sup-msg .who { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; font-size: 13px; }
.sup-msg .who b { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.sup-msg .who time { margin-left: auto; color: var(--muted); white-space: nowrap; }
.sup-msg .body { color: var(--parch); font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* (a block: an inline-block around an image of max-width 100% shrinks to nothing) */
.sup-file { display: block; width: fit-content; max-width: 100%; margin-top: 10px; }
.sup-file img { display: block; width: auto; max-width: min(100%, 440px); height: auto; max-height: 260px; border: 1px solid var(--line); border-radius: 2px; }
.sup-msg.sys { justify-content: center; max-width: none; }
.sup-msg.sys span { padding: 3px 14px; border: 1px solid rgba(156, 150, 173, 0.3); border-radius: 20px; color: var(--muted); font-size: 13px; }
#supClosed { margin: 0 0 20px; }
.notice.soft { border-color: rgba(143, 209, 138, 0.4); background: rgba(143, 209, 138, 0.06); color: var(--text); }
.sup-reply-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.sup-reply-row .drop { flex: 1 1 260px; }
.sup-reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pane .sup-reply-actions .btn { margin-top: 0; }
#supCloseBtn.sure { border-color: #e0735a; color: #ffb3a1; }

@media (max-width: 900px) {
  .sup .col:first-child { order: 2; }
}
@media (max-width: 600px) {
  .acct-tabs a { padding: 12px 14px 13px; letter-spacing: 0.08em; }
  .sup-msg { max-width: 100%; }
  .sup-cta .btn { width: 100%; }
}
