/* Device Changer — Account console (neon hologram theme, on top of landing.css) */

.account-main { min-height: 70vh; }
.account-page-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 22px; }
.sec-num { font-family: "JetBrains Mono", monospace; color: var(--neon); font-size: 13px; letter-spacing: 0.22em; margin-bottom: 10px; }

/* ---------- flash / alerts ---------- */
.account-flash {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  animation: flash-in 0.4s ease both;
}
.account-flash--success { border-color: rgba(56, 242, 164, 0.55); color: var(--neon); box-shadow: 0 0 22px rgba(56, 242, 164, 0.15); }
.account-flash--error { border-color: rgba(255, 100, 100, 0.45); color: #ff9d9d; background: rgba(80, 16, 16, 0.3); }
@keyframes flash-in {
  from { opacity: 0; translate: 0 -8px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- guest auth ---------- */
.account-auth-intro { max-width: 640px; margin-bottom: 30px; }
.account-auth-intro h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.account-auth-intro p { color: var(--dim); font-size: 15px; }
.account-auth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.account-auth-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.account-auth-card:hover {
  border-color: rgba(56, 242, 164, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 242, 164, 0.2), 0 20px 44px -18px rgba(56, 242, 164, 0.3);
  transform: translateY(-4px);
}
.account-auth-card h2 { font-size: 20px; margin-bottom: 6px; }
.account-auth-telegram p { color: var(--dim); font-size: 14px; }
.account-optional { color: var(--dim); font-size: 12px; }

/* ---------- forms ---------- */
.account-main label { font-size: 12.5px; color: var(--dim); font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.account-main input[type="text"], .account-main input[type="password"], .account-main input:not([type]) {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(3, 10, 7, 0.7);
  border: 1px solid rgba(56, 242, 164, 0.22);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.account-main input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(56, 242, 164, 0.14), 0 0 18px rgba(56, 242, 164, 0.2);
  background: rgba(6, 18, 12, 0.9);
}
.account-main input::placeholder { color: rgba(127, 160, 143, 0.5); }
.account-main .btn { cursor: pointer; border: 0; }
.account-main .btn-wire, .account-main .btn-outline { border: 1px solid var(--line); }
.account-link-form { display: flex; flex-direction: column; gap: 10px; }
.account-license-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.account-main .account-license-row .account-license-input {
  flex: 1 1 12rem;
  width: auto;
  min-width: 8rem;
}
.account-license-row .btn {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
.account-license-input { letter-spacing: 0.08em; }
.account-phone-list { list-style: none; display: grid; gap: 12px; margin: 14px 0 18px; padding: 0; }
.account-phone-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 10, 7, 0.35);
}
.account-phone-card > .account-phone-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-content: stretch;
}
.account-phone-art { width: 48px; height: 80px; flex: 0 0 auto; overflow: hidden; }
.account-phone-scan { transform-box: fill-box; transform-origin: center top; }
.account-phone-shell {
  fill: rgba(3, 10, 7, 0.8);
  stroke: rgba(56, 242, 164, 0.45);
  stroke-width: 1.6;
}
.account-phone-screen { fill: rgba(56, 242, 164, 0.08); }
.account-phone-scan { fill: rgba(56, 242, 164, 0.45); animation: account-phone-scan 2.8s ease-in-out infinite; }
.account-phone-cam, .account-phone-home { fill: rgba(56, 242, 164, 0.7); }
.account-phone-card.is-signed-in .account-phone-shell {
  stroke: var(--neon);
  filter: drop-shadow(0 0 6px rgba(56, 242, 164, 0.45));
}
.account-phone-card.is-signed-in .account-phone-screen { animation: account-phone-glow 2.4s ease-in-out infinite; }
@keyframes account-phone-scan {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(440%); opacity: 0; }
}
@keyframes account-phone-glow {
  0%, 100% { fill: rgba(56, 242, 164, 0.08); }
  50% { fill: rgba(56, 242, 164, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .account-phone-scan, .account-phone-card.is-signed-in .account-phone-screen { animation: none; }
}
.account-phone-card div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.account-phone-head { align-items: center; }
.account-phone-locked { margin: 0; color: var(--dim); font-size: 13px; }
.account-main .account-phone-name {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.account-main .account-phone-name input[type="text"] {
  width: auto;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 240px;
  padding: 8px 10px;
}
.account-main .account-phone-name .btn { flex: 0 0 auto; white-space: nowrap; }
.account-phone-card .account-code-line,
.account-history-list .account-code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px 14px;
  margin-top: 8px;
}
.account-phone-card .account-phone-remaining,
.account-history-list .account-phone-remaining {
  margin: 0;
  text-align: left;
  color: var(--neon);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.3;
}
.account-phone-card .account-phone-remaining strong,
.account-history-list .account-phone-remaining strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.account-phone-card .account-phone-until,
.account-history-list .account-phone-until {
  margin-left: 8px;
  color: var(--dim);
  font-size: 12px;
}
.account-phone-assign, .account-phone-card form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.account-phone-assign select, .account-license-row select {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 242, 164, 0.22);
  background: rgba(3, 10, 7, 0.7);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
}

/* ---------- profile ---------- */
.account-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 30, 22, 0.85), rgba(8, 18, 14, 0.8));
  border: 1px solid rgba(56, 242, 164, 0.3);
  box-shadow: 0 0 34px rgba(56, 242, 164, 0.12), inset 0 0 30px rgba(56, 242, 164, 0.04);
  margin-bottom: 22px;
}
.account-profile .holo-corner { width: 20px; height: 20px; }
.account-avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(56, 242, 164, 0.45);
  box-shadow: 0 0 20px rgba(56, 242, 164, 0.25);
}
.account-avatar-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56, 242, 164, 0.3), rgba(56, 242, 164, 0.08));
  color: var(--neon);
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(56, 242, 164, 0.7);
}
.account-info { flex: 1; min-width: 160px; }
.account-name { font-size: 23px; font-weight: 700; }
.account-username { color: var(--dim); font-family: "JetBrains Mono", monospace; font-size: 13px; }
.account-wallet-compact { text-align: right; }
.account-wallet-label { display: block; color: var(--dim); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; }
.account-wallet-balance {
  display: block;
  color: var(--neon);
  font-family: "JetBrains Mono", monospace;
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 0 22px rgba(56, 242, 164, 0.55);
}
.account-wallet-id { color: var(--dim); font-family: "JetBrains Mono", monospace; font-size: 11px; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.account-feedback { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.account-main .account-feedback select,
.account-main .account-feedback textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(3, 10, 7, 0.7);
  border: 1px solid rgba(56, 242, 164, 0.22);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}
.account-feedback-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.account-feedback-list li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 242, 164, 0.16);
  background: rgba(3, 10, 7, 0.45);
}
.account-feedback-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 13px; }
.account-feedback-list p { margin: 0; white-space: pre-wrap; }

/* ---------- tabs ---------- */
.account-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 16, 12, 0.75);
  border: 1px solid rgba(56, 242, 164, 0.16);
  width: fit-content;
  max-width: 100%;
}
.account-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  color: var(--dim);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.account-tabs a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-tabs a:hover { color: var(--neon); background: rgba(56, 242, 164, 0.07); }
.account-tabs a.account-tab-active {
  color: #04120c;
  background: linear-gradient(120deg, var(--neon), #6ef7c5);
  box-shadow: 0 0 18px rgba(56, 242, 164, 0.45);
}

/* ---------- cards ---------- */
.account-wallet-card, .account-history, .account-reissue {
  padding: 26px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.account-wallet-card:hover, .account-history:hover, .account-reissue:hover {
  border-color: rgba(56, 242, 164, 0.45);
  box-shadow: 0 0 24px rgba(56, 242, 164, 0.12);
}
.account-wallet-card h2, .account-history h2, .account-reissue h2,
.account-orders-title { font-size: 19px; margin-bottom: 12px; }
.account-wallet-card p, .account-history p { color: var(--dim); font-size: 14px; }
.account-wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.account-wallet-grid .account-wallet-card { margin-bottom: 0; }
.account-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* ---------- referral ---------- */
.referral-link-row { display: flex; gap: 10px; margin: 12px 0; }
.referral-link-row input { flex: 1; }
.referral-link-row .btn { white-space: nowrap; }
.account-referral-card { border-color: rgba(56, 242, 164, 0.35); }

/* ---------- lists / history ---------- */
.account-history-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.account-history-list > li {
  padding: 16px 18px;
  border-radius: 11px;
  background: rgba(5, 14, 10, 0.6);
  border: 1px solid rgba(56, 242, 164, 0.14);
  transition: border-color 0.25s, background 0.25s;
}
.account-history-list > li:hover { border-color: rgba(56, 242, 164, 0.4); background: rgba(8, 20, 14, 0.8); }
.account-history-list li > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-history-list strong { color: var(--ink); font-size: 14px; }
.account-history-list span { color: var(--dim); font-size: 12.5px; }
.account-history-list p { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.account-history-list code {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(56, 242, 164, 0.08);
  border: 1px solid rgba(56, 242, 164, 0.3);
  color: var(--neon);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  word-break: break-all;
}
.account-empty { color: var(--dim); font-size: 14px; }
.amount-positive { color: var(--neon) !important; text-shadow: 0 0 12px rgba(56, 242, 164, 0.4); }
.amount-negative { color: #ff9d9d !important; }
.account-identity-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.account-identity-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(56, 242, 164, 0.14); }
.account-identity-list li:last-child { border-bottom: 0; }
.account-identity-list code { color: var(--neon-2); font-size: 12.5px; }
.account-revoked-licenses summary { cursor: pointer; color: var(--dim); padding: 10px 0; font-size: 13px; }

/* ---------- reissue ---------- */
.account-reissue-title { font-size: 19px; }
.account-reissue-desc { color: var(--dim); font-size: 14px; margin-bottom: 16px; }
.account-reissue-form { display: grid; gap: 12px; max-width: 560px; }
.account-reissue-input { letter-spacing: 0.08em; }
.account-reissue-actions { display: flex; gap: 10px; }
.account-reissue-msg { font-size: 13px; margin-top: 10px; }
.account-reissue-msg-error { color: #ff9d9d; }
.account-reissue-msg-ok { color: var(--neon); }
.account-reissue-new-code {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(56, 242, 164, 0.1);
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  box-shadow: 0 0 20px rgba(56, 242, 164, 0.25);
}
.account-reissue-hint { color: var(--dim); font-size: 12.5px; margin-top: 10px; }
.account-reissue-success { margin-top: 12px; }

/* ---------- orders ---------- */
.account-orders-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.account-order-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(5, 14, 10, 0.6);
  border: 1px solid rgba(56, 242, 164, 0.16);
}
.account-order-card.order-paid { border-color: rgba(56, 242, 164, 0.5); box-shadow: 0 0 18px rgba(56, 242, 164, 0.1); }
.account-order-card.order-expired { opacity: 0.65; }
.account-order-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.account-order-id { font-family: "JetBrains Mono", monospace; color: var(--neon); font-size: 13px; }
.account-order-date, .account-order-network { color: var(--dim); font-size: 12.5px; }
.account-order-status { font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; color: var(--neon-2); }
.account-order-amount { font-weight: 700; }
.account-order-code-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.account-order-code-label { color: var(--dim); font-size: 12px; }
.account-order-code {
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(56, 242, 164, 0.08);
  border: 1px solid rgba(56, 242, 164, 0.3);
  color: var(--neon);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  word-break: break-all;
}
.account-order-actions { display: flex; gap: 10px; margin-top: 8px; }
.account-license-actions { margin-top: 10px; }

/* ---------- streamdc ---------- */
.streamdc-purchase-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.streamdc-code-list { display: grid; gap: 8px; margin-top: 12px; }
.streamdc-code-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.streamdc-code-status { font-family: "JetBrains Mono", monospace; font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.streamdc-code-status--unused { color: var(--neon); border-color: rgba(56, 242, 164, 0.4); }
.streamdc-code-status--active { color: var(--neon-2); border-color: rgba(57, 198, 255, 0.4); }
.streamdc-code-status--expired, .streamdc-code-status--revoked { color: #ff9d9d; border-color: rgba(255, 100, 100, 0.35); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .account-auth-grid { grid-template-columns: 1fr; }
  .account-profile { padding: 22px 20px; gap: 16px; }
  .account-wallet-compact { text-align: left; }
  .account-tabs { width: 100%; overflow-x: auto; }
  .account-phone-card { min-width: 0; flex-wrap: wrap; }
  .account-phone-card .account-phone-body > * { min-width: 0; max-width: 100%; }
  .account-main .account-phone-name { flex-wrap: wrap; width: 100%; }
  .account-main .account-phone-name input[type="text"] { min-width: 0; max-width: none; }
  .account-main .account-phone-name .btn { min-width: 0; max-width: 100%; white-space: normal; }
  .account-phone-card .account-purchased-license-code { min-width: 0; overflow-wrap: anywhere; }
}


.account-wiki-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-wiki-heading h2 { margin-top: 0; }
.account-wiki-list { display: grid; gap: 14px; padding: 0; margin: 20px 0 0; list-style: none; }
.account-wiki-item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.account-wiki-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-wiki-meta time { margin-inline-start: auto; color: var(--dim); font-size: 12px; }
.account-wiki-status { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font: 11px "JetBrains Mono", monospace; }
.account-wiki-status--approved { color: var(--neon); border-color: rgba(56,242,164,0.4); }
.account-wiki-status--pending { color: var(--neon-2); border-color: rgba(57,198,255,0.4); }
.account-wiki-status--rejected, .account-wiki-status--unpublished { color: #ff9d9d; }
.account-wiki-comment { padding: 10px 12px; border-inline-start: 3px solid var(--neon-2); background: rgba(57,198,255,0.06); }
.account-wiki-comment p { margin-bottom: 0; }
.account-wiki-reward { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.account-wiki-reward code { overflow-wrap: anywhere; color: var(--neon); }
.account-wiki-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.account-wiki-actions form { margin: 0; }
@media (max-width: 600px) {
  .account-wiki-heading { align-items: stretch; flex-direction: column; }
  .account-wiki-meta time { width: 100%; margin-inline-start: 0; }
  .account-wiki-actions { align-items: stretch; flex-direction: column; }
  .account-wiki-actions .btn, .account-wiki-actions form, .account-wiki-actions form .btn { width: 100%; box-sizing: border-box; }
}


.auth-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
