/* PSN Heaven Shop — account pages. Uses the theme's tokens (style.css §1),
   flexbox only like the rest of the site, logical properties for RTL. */

.acct { padding-top: 56px; }

/* Sign-in card */
.acct-card {
  max-width: 480px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; text-align: center;
}
.acct-card h1, .acct-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 10px; }
.acct-sub { color: var(--text-soft); font-size: .98rem; margin: 0 0 28px; }

.acct-providers { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.acct-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; transition: box-shadow .16s ease, transform .16s ease;
}
.acct-btn:hover { transform: translateY(-1px); }
/* Google's own button colours (its branding guidelines ask for white + the G mark). */
.acct-btn--google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.acct-btn--google:hover { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.acct-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
/* Telegram's brand blue, same size and shape as the Google button (AR, 30 Sep). */
.acct-btn--tg { background: #54A9EB; color: #fff; }
.acct-btn--tg:hover { background: #4a9bd9; box-shadow: 0 6px 20px rgba(84,169,235,.35); }
.acct-btn--tg svg { fill: #fff; }

/* "Confirm in Telegram" - shown while the page waits for the bot. */
.acct-wait {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  margin: 20px auto; max-width: 480px; padding: 24px;
  background: rgba(84,169,235,.08); border: 1px solid rgba(84,169,235,.45); border-radius: var(--radius-lg);
}
.acct-wait[hidden] { display: none; }
.acct-wait h2 { font-size: 1.2rem; margin: 0; }
.acct-wait p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.acct-wait__spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(84,169,235,.25); border-top-color: #54A9EB;
  animation: acct-spin .9s linear infinite;
}
@keyframes acct-spin { to { transform: rotate(360deg); } }

.acct-or { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--text-mute); font-size: .85rem; }
.acct-or::before, .acct-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }

.acct-email { text-align: start; }
.acct-email label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.acct-email__row { display: flex; gap: 10px; }
.acct-email__row input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px;
  background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem;
}
.acct-email__row input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.acct-email__row .btn { flex: 0 0 auto; }
.acct-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.acct-why { margin: 26px 0 0; font-size: .88rem; color: var(--text-soft); }
.acct-legal { margin: 12px 0 0; font-size: .8rem; color: var(--text-mute); }
.acct-legal a, .acct-link { color: var(--violet-lt); }

.acct-sent svg { width: 44px; height: 44px; color: var(--violet-lt); margin: 0 auto 14px; display: block; }
.acct-sent p { color: var(--text-soft); }

.acct-note { max-width: 960px; margin: 0 auto 20px; padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; text-align: start; }
.acct-card .acct-note { margin-bottom: 20px; }
.acct-note--ok  { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.4);  color: #bff5df; }
.acct-note--err { background: rgba(255,104,116,.1); border: 1px solid rgba(255,104,116,.45); color: #ffd0d4; }

/* Dashboard */
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.acct-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.acct-head .acct-sub { margin: 0; }
.acct-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.acct-main { flex: 1 1 520px; min-width: 0; }
.acct-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.acct-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.acct-panel h2 { font-size: 1.2rem; margin-bottom: 16px; }
.acct-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); }
.acct-empty p { margin: 0; color: var(--text-soft); }

.acct-dl { margin: 0; display: flex; flex-direction: column; }
.acct-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.acct-dl > div:last-child { border-bottom: 0; }
.acct-dl dt { color: var(--text-mute); }
.acct-dl dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.acct-muted { color: var(--text-mute); }
.acct-email--add { margin-top: 16px; }
.acct-email--add p { font-size: .88rem; color: var(--text-soft); margin: 0 0 10px; }
.acct-email--add input { height: 42px; }

.acct-methods { display: flex; flex-direction: column; }
.acct-methods li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-methods li:last-child { border-bottom: 0; }
.acct-m__icon { display: flex; width: 20px; color: var(--text-soft); }
.acct-m__name { flex: 1 1 auto; font-size: .95rem; }
.acct-m__on { font-size: .8rem; font-weight: 600; color: var(--green); }

@media (max-width: 767px) {
  .acct { padding-top: 32px; }
  .acct-card { padding: 28px 20px; }
  .acct-email__row { flex-direction: column; }
  .acct-email__row .btn { width: 100%; }
}
