/* ═══════════════════════════════════════════════════════════
   SOMNA · paskyros, profilis ir režimo perjungiklis
   ═══════════════════════════════════════════════════════════ */

/* ─────────── Režimo ikona (tik neprisijungusiam) ─────────── */
.theme-btn {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text-3);
  transition: color .2s var(--ease);
}
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--brass); }

.acct-login {
  font-size: 13px;
  color: var(--text-2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.acct-login:hover { border-color: var(--brass-dk); color: var(--brass); }

/* ─────────── Avataras su išskleidžiamu meniu ─────────── */
.acctmenu { position: relative; }
.acct {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 3px 8px 3px 3px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.acct:hover, .acct[aria-expanded="true"] { border-color: var(--line-2); background: var(--surf-a); }
.acct-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brass-solid);
  color: var(--on-brass);
  font-size: 13px;
  font-weight: 600;
}
.acct-n { font-size: 13px; color: var(--text-2); }
.acct:hover .acct-n { color: var(--text); }
.acct-caret {
  width: 6px; height: 6px;
  border-right: 1px solid var(--text-3);
  border-bottom: 1px solid var(--text-3);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s var(--ease);
  margin-right: 2px;
}
.acct[aria-expanded="true"] .acct-caret { transform: rotate(-135deg) translate(-2px, -2px); }

.acct-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: var(--s2);
  border: 1px solid var(--line-2);
  border-radius: var(--r3);
  background: var(--raised);
  box-shadow: var(--sh3);
  z-index: 120;
  animation: acct-in .16s var(--ease-o);
}
@keyframes acct-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.acct-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  padding: var(--s3);
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--r2);
  text-align: left;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.acct-item:hover { background: var(--surf-a); color: var(--text); }
.acct-item b { font-weight: 500; color: var(--text-3); font-size: 13px; }
.acct-bal b { color: var(--brass); font-family: var(--mono); }
.acct-theme b { color: var(--text-3); }
.acct-out { color: var(--clay); border-top: 1px solid var(--line); border-radius: 0; margin-top: var(--s1); padding-top: var(--s3); }
.acct-out:hover { background: rgba(169,107,91,.08); color: var(--clay); }

/* ─────────── Mobilus meniu: paskyros dalis ─────────── */
.mm-acct {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s1);
}
.mm-acct .acct-item { font-size: 15px; }
.acct-m {
  padding: var(--s3);
  font-size: 15px;
  color: var(--brass) !important;
  border-radius: var(--r2);
}
.acct-m.acct-out { color: var(--clay) !important; }

/* ─────────── Prisijungimo dėžė ─────────── */
.acct-shell {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--s7));
  padding-bottom: var(--s9);
}

.acct-box {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: var(--s7);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  box-shadow: var(--sh2);
  position: relative;
}
.acct-box::before, .acct-box::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border: 1px solid var(--brass-dk);
  opacity: .5;
}
.acct-box::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.acct-box::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.acct-head { text-align: center; margin-bottom: var(--s6); }
.acct-head h1 { font-size: 1.9rem; margin-bottom: var(--s3); }
.acct-head p { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 34ch; margin-inline: auto; }

.acct-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  margin-bottom: var(--s6);
}
.acct-tab {
  padding: var(--s3);
  border-radius: var(--r1);
  font-size: 14px;
  color: var(--text-3);
  transition: all .2s var(--ease);
}
.acct-tab:hover { color: var(--text); }
.acct-tab.on { background: var(--tint-2); color: var(--brass); font-weight: 500; }

.pass-wrap { position: relative; }
.pass-wrap .field { padding-right: 68px; }
.pass-eye {
  position: absolute;
  right: 1px; top: 1px; bottom: 1px;
  padding-inline: var(--s3);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-radius: 0 var(--r2) var(--r2) 0;
  transition: color .2s var(--ease);
}
.pass-eye:hover { color: var(--brass); }

.acct-warn {
  margin-top: var(--s6);
  padding: var(--s4);
  border: 1px solid rgba(169,107,91,.4);
  border-left-width: 2px;
  border-radius: var(--r2);
  background: rgba(169,107,91,.07);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.acct-warn b { color: var(--clay); }

.acct-demo {
  margin-top: var(--s4);
  padding: var(--s4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r2);
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.acct-demo code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brass);
  background: var(--tint);
  padding: 2px 6px;
  border-radius: var(--r1);
}

/* ─────────── Profilis ─────────── */
.prof-head {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
  padding-bottom: var(--s6);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}
.prof-av {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brass-solid);
  color: var(--on-brass);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}
.prof-id { flex: 1; min-width: 200px; }
.prof-id h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: var(--s2); }
.prof-meta { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-3); }
.prof-act { display: flex; gap: var(--s2); flex-wrap: wrap; }

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s5);
  align-items: start;
}
@media (max-width: 940px) { .prof-grid { grid-template-columns: 1fr; } }

.prof-side { display: grid; gap: var(--s4); }

.prof-glyph {
  font-family: "Segoe UI Symbol", "Apple Symbols", var(--serif);
  font-size: 46px;
  color: var(--brass);
  line-height: 1;
  margin-bottom: var(--s4);
}

.prof-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.prof-nums dt {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s2);
}
.prof-nums dd { font-family: var(--serif); font-size: 1.8rem; color: var(--brass); line-height: 1; }

.prof-thread {
  display: block;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--surf-c);
  transition: border-color .2s var(--ease);
}
.prof-thread:hover { border-color: var(--brass-dk); }
.prof-thread b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-thread span { font-size: 14px; color: var(--text-3); }

/* ─────────── Vartotojų lentelė administravime ─────────── */
.role-pill {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r1);
  border: 1px solid var(--line-2);
  color: var(--text-3);
}
.role-pill.is-admin { border-color: rgba(198,166,100,.4); color: var(--brass); background: var(--tint); }

/* ─────────── Registracija: Google, arba, varnelės ─────────── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  width: 100%; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  background: var(--surface);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.btn-google:hover { border-color: var(--text-3); background: var(--surf-a); }

.or-line {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s5) 0;
  color: var(--text-3); font-size: 12px;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.check {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--s3);
  align-items: start;
  margin-top: var(--s4);
  font-size: 13px; line-height: 1.55; color: var(--text-2);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brass-solid); cursor: pointer; }
.check a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--brass-lt); }

/* ─────────── El. pašto patvirtinimas ─────────── */
.code-stub {
  margin-top: var(--s5);
  padding: var(--s4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r2);
  font-size: 12.5px; line-height: 1.6; color: var(--text-3);
  text-align: center;
}
.code-stub b { color: var(--text-2); }
.code-show {
  margin-top: var(--s3);
  font-family: var(--mono);
  font-size: 1.9rem;
  letter-spacing: .3em;
  color: var(--brass);
}
