/* Page-specific presentation for account.html. Keep behavior in assets/js. */
:root {
  --ink: #07080f;
  --panel: #11131d;
  --line: rgba(255, 255, 255, 0.13);
  --mint: #b8ffda;
  --muted: #aab0bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #fff;
  background: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}
.shell {
  max-width: 980px;
  margin: auto;
  padding: 0 28px;
}
.top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.nav {
  color: var(--mint);
  text-decoration: none;
  font:
    12px 'DM Mono',
    monospace;
}
.logout {
  display: inline-block;
  margin-top: 22px;
  border: 0;
  background: none;
  color: var(--mint);
  cursor: pointer;
  padding: 0;
  font:
    12px 'DM Mono',
    monospace;
}
.logout[hidden] {
  display: none !important;
}
.logout.header {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
main {
  padding: 55px 0 70px;
}
.eyebrow {
  color: #b8ffda;
  font:
    11px 'DM Mono',
    monospace;
  letter-spacing: 0.13em;
}
h1 {
  margin: 13px 0 33px;
  font-size: 48px;
  letter-spacing: -0.07em;
}
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  color: #082018;
  background: var(--mint);
  font-weight: 800;
  font-size: 18px;
}
.panel h2 {
  margin: 18px 0 5px;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.detail {
  margin: 13px 0;
}
.detail span {
  display: block;
  color: #888e9e;
  font:
    10px 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.detail b {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.title-row h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.05em;
}
.order-search {
  display: block;
  margin-bottom: 14px;
}
.order-search span {
  display: block;
  margin-bottom: 6px;
  color: #888e9e;
  font:
    10px 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.order-search input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #343947;
  border-radius: 9px;
  outline: 0;
  color: #fff;
  background: #090b12;
  font: 600 12px Manrope;
}
.order-search input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px #b8ffda18;
}
.game-request-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.game-request-section .title-row {
  align-items: flex-start;
  margin-bottom: 14px;
}
.game-request-section .title-row p {
  margin-top: 5px;
}
.request-count {
  display: inline-block;
  margin-left: 5px;
  color: var(--mint);
  font: 10px 'DM Mono', monospace;
  letter-spacing: 0;
  white-space: nowrap;
}
.game-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 9px;
  align-items: end;
}
.game-request-form label {
  display: grid;
  gap: 6px;
  color: #888e9e;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
}
.game-request-form input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #343947;
  border-radius: 9px;
  outline: 0;
  color: #fff;
  background: #090b12;
  font: 600 12px Manrope;
}
.game-request-form input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px #b8ffda18;
}
.game-request-form button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  color: #082018;
  background: var(--mint);
  cursor: pointer;
  font: 800 12px Manrope;
}
.game-request-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.game-request-message {
  min-height: 18px;
  margin: 9px 0 0 !important;
  color: #ff9bab !important;
  font-size: 11px !important;
}
.game-request-message.is-success {
  color: var(--mint) !important;
}
.game-requests {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.game-request,
.game-requests-empty {
  margin: 0 !important;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  padding: 10px 11px;
  background: #0c0e16;
}
.game-request {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.game-request strong {
  font-size: 12px;
}
.game-request span,
.game-requests-empty {
  color: #969cad;
  font-size: 10px;
  line-height: 1.45;
}
.game-request-toggle {
  justify-self: start;
  border: 0;
  padding: 5px 0;
  color: var(--mint);
  background: transparent;
  cursor: pointer;
  font: 11px 'DM Mono', monospace;
}
.order {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.order.is-rejected {
  margin: 8px 0;
  padding: 18px;
  border: 1px solid #ff6f8273;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a1018, #0b0d15 72%);
  box-shadow: inset 3px 0 0 #ff6f82;
}
.order:first-of-type:not(.is-rejected) {
  border-top: 0;
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}
.order-status {
  margin: 8px 0 13px;
  color: var(--mint);
  font:
    11px 'DM Mono',
    monospace;
}
.order-status.is-rejected {
  color: #ff8fa0;
  font-weight: 800;
}
.rejection-comment {
  margin: 0 0 13px;
  padding: 10px 12px;
  border: 1px solid #ff6f825c;
  border-radius: 8px;
  color: #ffc1ca;
  background: #ff6f8212;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.return-reward {
  margin: 0 0 13px;
  padding: 10px 12px;
  border: 1px solid #b8ffda52;
  border-radius: 8px;
  color: var(--mint);
  background: #b8ffda0d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.order-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.timeline-fact {
  padding: 9px;
  border-radius: 8px;
  background: #151824;
}
.timeline-fact span {
  display: block;
  color: #858b9b;
  font:
    9px 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.timeline-fact b {
  display: block;
  margin-top: 4px;
  color: #dce0e9;
  font-size: 10px;
  line-height: 1.35;
}
.order-items {
  display: grid;
  gap: 8px;
}
.order-item {
  display: grid;
  grid-template-columns: minmax(130px, 1.5fr) repeat(4, minmax(80px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #0b0d15;
}
.order-item strong {
  align-self: center;
  font-size: 13px;
}
.order-fact span {
  display: block;
  color: #858b9b;
  font:
    9px 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.order-fact b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}
.order-fact.price b,
.order-fact.access b {
  color: var(--mint);
}
.empty {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
  padding: 18px 0;
}
.button {
  display: inline-block;
  margin-top: 17px;
  padding: 12px 14px;
  border-radius: 9px;
  color: #082018;
  background: var(--mint);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.hidden {
  display: none;
}
@media (max-width: 680px) {
  .shell {
    padding: 0 18px;
  }
  .top {
    min-height: 66px;
    height: auto;
    gap: 10px;
    padding-block: 10px;
  }
  .brand {
    max-width: 145px;
    font-size: 16px;
    line-height: 1.05;
  }
  .top-actions {
    gap: 7px;
  }
  .logout.header {
    min-height: 40px;
  }
  .order-search input {
    min-height: 46px;
    font-size: 16px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  main {
    padding: 40px 0;
  }
  h1 {
    font-size: 39px;
  }
  .order-timeline {
    grid-template-columns: 1fr;
  }
  .order-item {
    grid-template-columns: 1fr 1fr;
  }
  .order-item strong {
    grid-column: span 2;
  }
  .game-request-form {
    grid-template-columns: 1fr;
  }
  .game-request-form input,
  .game-request-form button {
    min-height: 44px;
  }
}
@media (max-width: 430px) {
  .shell {
    padding-inline: 14px;
  }
  .top-actions .nav {
    display: none;
  }
  h1 {
    font-size: 35px;
  }
  .panel {
    padding: 19px;
  }
  .title-row {
    align-items: flex-start;
    gap: 10px;
  }
  .order-top {
    flex-direction: column;
  }
  .game-request {
    align-items: flex-start;
    flex-direction: column;
  }
}
