:root {
  --bg: #090b10;
  --bg-soft: #10141d;
  --panel: rgba(14, 18, 25, 0.86);
  --panel-strong: rgba(21, 27, 38, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3eee7;
  --muted: #97a0ae;
  --accent: #ef7d2f;
  --accent-strong: #ffb05f;
  --danger: #ff667a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 125, 47, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(74, 124, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #06080d 0%, #090b10 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

.bg-orb-a {
  top: 5%;
  right: 10%;
  width: 240px;
  height: 240px;
  background: #ef7d2f;
}

.bg-orb-b {
  left: 5%;
  bottom: 10%;
  width: 280px;
  height: 280px;
  background: #4e7cff;
}

.page {
  position: relative;
  padding: 28px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 0 4px 18px;
  color: #cb88ff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
}

.auth-shell {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.card {
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.88) 0%, rgba(10, 13, 19, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-head-auth {
  justify-content: center;
  margin-bottom: 18px;
}

.brand-head-app {
  gap: 18px;
}

.brand-logo {
  display: block;
  width: 98px;
  height: 98px;
  object-fit: contain;
}

.brand-logo-app {
  width: 84px;
  height: 84px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1, h2, h3, p {
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.9);
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  cursor: pointer;
}

.primary-btn,
.ghost-btn,
.segmented-btn {
  padding: 11px 16px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.primary-btn {
  color: #1c1208;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.ghost-btn,
.segmented-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-btn.danger {
  color: #ffdfe5;
  border-color: rgba(255, 102, 122, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.segmented-btn:hover {
  transform: translateY(-1px);
}

.status-text {
  min-height: 20px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.license-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.segmented-btn.active {
  color: #160d08;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9f57 0%, #ffd299 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.filters-card,
.list-card {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-btn {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.count-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.account-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.account-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 19, 27, 0.95) 0%, rgba(8, 11, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.platform-text {
  color: #f5b16b;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.account-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-download-btn,
.row-copy-btn {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.row-copy-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.account-download-btn:hover,
.row-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-download-btn:active,
.row-copy-btn:active,
.ingame-spotlight-value:active {
  transform: translateY(1px);
}

.platform-badges,
.meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.badge.clean {
  color: #98efb8;
  border-color: rgba(110, 239, 154, 0.2);
}

.badge.shadowban {
  color: #ffb2be;
  border-color: rgba(255, 102, 122, 0.3);
}

.badge.mode {
  color: #ffd4a5;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.account-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.account-row:first-child {
  border-top: 0;
}

.account-row.is-highlight {
  background: linear-gradient(180deg, rgba(255, 163, 78, 0.12) 0%, rgba(91, 44, 12, 0.24) 100%);
  border: 1px solid rgba(255, 172, 88, 0.22);
}

.row-label {
  color: rgba(255, 255, 255, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.row-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  word-break: break-word;
}

.row-value.is-copyable {
  cursor: pointer;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.row-value.is-copyable:hover {
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.row-copy-btn.is-disabled,
.row-copy-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.tone-default .row-label,
.tone-default .row-value {
  color: var(--text);
}

.tone-mail .row-label,
.tone-mail .row-value {
  color: #f3eee7;
}

.tone-activision .row-label,
.tone-activision .row-value {
  color: #cb88ff;
}

.tone-steam .row-label,
.tone-steam .row-value {
  color: #ff8a8a;
}

.tone-xbox .row-label,
.tone-xbox .row-value {
  color: #74e39b;
}

.tone-battle .row-label,
.tone-battle .row-value {
  color: #7eb5ff;
}

.tone-ingame .row-label,
.tone-ingame .row-value {
  color: #ffcf9a;
}

.ingame-spotlight {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 154, 61, 0.22);
  background: linear-gradient(180deg, rgba(130, 69, 24, 0.5) 0%, rgba(57, 27, 8, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ingame-spotlight-label {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #f5c596;
}

.ingame-spotlight-value {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff4e8;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: text-shadow 0.18s ease, transform 0.18s ease;
}

.ingame-spotlight-value:hover {
  text-shadow: 0 0 18px rgba(255, 214, 170, 0.45);
}

.ingame-spotlight-value:disabled {
  cursor: default;
  opacity: 0.7;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 35, 0.96) 0%, rgba(9, 12, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.modal-form {
  margin-top: 10px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  padding-right: 6px;
}

.section-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-panel h3 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.span-2 {
  grid-column: span 2;
}

.checkbox-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-grid label {
  flex-direction: row;
  align-items: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 16px;
  }

  .page-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid,
  .account-list {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .account-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .section-head,
  .list-actions {
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
  }

  .list-actions {
    justify-content: flex-start;
  }

  .meta-group {
    align-items: stretch;
  }
}
