.page-account { background: #0f1010; }
.dash {
  width: min(1340px, 100% - 32px); margin: 0 auto; padding: 120px 0 60px;
  display: grid; grid-template-columns: 270px minmax(0, 1fr) 380px; gap: 32px; align-items: start;
}

/* ---- sidebar ---- */
.side-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.side-head__ic, .sub-head__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(127,224,184,.14); color: var(--accent); }
.side-head b, .sub-head b { display: block; font-size: 14px; }
.side-head small, .sub-head small { color: var(--muted); font-size: 12px; }
.side-nav { display: grid; gap: 6px; margin-top: 40px; padding: 0 8px; }
.side-nav button { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #a5aca8; text-align: left; transition: .2s; }
.side-nav button svg { color: #6d7571; transition: .2s; }
.side-nav button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side-nav button.is-active { background: var(--card); color: var(--text); }
.side-nav button.is-active svg { color: var(--accent); }
.side-admin { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--accent); border: 1px dashed rgba(127,224,184,.35); margin-top: 10px; }
.side-admin:hover { background: rgba(127,224,184,.08); }

/* ---- center ---- */
.pane { display: none; animation: paneIn .35s ease; }
.pane.is-active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }

.banner {
  display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(14,40,31,.2), rgba(14,15,15,.1)),
    conic-gradient(from 210deg at 70% 50%, #1f5c47, #2c7f62, #174536, #2f8d6b, #1f5c47);
  position: relative; overflow: hidden;
}
.banner::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(60deg, transparent 40%, rgba(255,255,255,.08) 40% 55%, transparent 55%),
  linear-gradient(-30deg, transparent 60%, rgba(0,0,0,.15) 60% 75%, transparent 75%); }
.banner > * { position: relative; }
.banner b { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.banner b svg { color: var(--accent); }
.banner small { display: block; color: #cfe6dc; font-size: 12px; margin: 4px 0 0 26px; }
.ava-upload { position: relative; cursor: pointer; }
.ava-upload img, .ava-upload .avatar-letter { width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); display: grid; }
.ava-upload i { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #0f1010; color: var(--accent); font-style: normal; font-size: 14px; font-weight: 800; display: grid; place-items: center; border: 1px solid var(--line); }
.ava-upload:hover img, .ava-upload:hover .avatar-letter { filter: brightness(1.15); }

.dash__main { min-width: 0; }
.dash__main .pane > *:not(.banner) { margin-left: 26px; margin-right: 26px; }
.field { display: grid; gap: 8px; font-size: 13px; color: #a5aca8; }
.field input, .inline-form input, .key-form input {
  width: 100%; height: 36px; border-radius: 9px; border: 1px solid transparent; background: #1a1c1b; color: var(--text);
  padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; outline: none; transition: .2s;
}
.field input::placeholder, .inline-form input::placeholder, .key-form input::placeholder { color: #5f6662; font-weight: 500; }
.field input:focus, .inline-form input:focus, .key-form input:focus { border-color: rgba(127,224,184,.5); }
.field input[readonly] { color: #d9dedb; }
.field__row { display: flex; gap: 8px; }
.mini-btn { padding: 0 14px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; margin-top: 34px; }
.info div { display: grid; gap: 10px; }
.info span { display: flex; justify-content: space-between; align-items: center; color: #a5aca8; font-size: 13px; }
.info b { font-size: 15px; }
.ic-copy, .ic-info { font-style: normal; width: 14px; height: 14px; border-radius: 4px; background: #3a403d; color: #0f1010; font-size: 10px; font-weight: 800; display: grid; place-items: center; cursor: pointer; }
.ic-info { border-radius: 50%; cursor: help; }
.sub-head { display: flex; gap: 12px; align-items: center; margin-top: 50px; }
.sub-head__ic { width: 22px; height: 22px; border-radius: 6px; }
.sub-head__ic svg { width: 13px; height: 13px; }
.pass-form { display: grid; gap: 4px; margin-top: 30px; }
.pass-form .grid2 { margin-top: 14px; }
.strength { height: 2px; width: 46%; margin: 26px auto 22px; background: #2a2e2c; border-radius: 2px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--accent); transition: .3s; }
.pass-form .btn { height: 34px; font-size: 13px; border-radius: 9px; }

.pane-title b { display: block; font-size: 22px; font-weight: 800; }
.pane-title small { color: var(--muted); font-size: 14px; }
.pane-title { margin-bottom: 24px; }
.inline-form { display: flex; gap: 10px; margin-bottom: 18px; }
.inline-form input { height: 40px; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.list-item b { font-weight: 700; }
.list-item small { color: var(--muted); display: block; font-size: 12px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .x { color: var(--muted); font-size: 18px; padding: 4px 8px; border-radius: 8px; }
.list-item .x:hover { color: #ff8f8f; background: rgba(255,120,120,.1); }
.list-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; }
.progress { height: 6px; background: #2a2e2c; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: rgba(127,224,184,.15); color: var(--accent); white-space: nowrap; }
.badge--off { background: rgba(255,255,255,.06); color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.tile b { display: block; margin-bottom: 6px; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.5; }
a.tile:hover { border-color: rgba(127,224,184,.4); transform: translateY(-2px); }

/* tickets */
.ticket-form { display: grid; gap: 10px; margin-bottom: 18px; }
.ticket-form input, .ticket-form textarea { width: 100%; border-radius: 10px; border: 1px solid transparent; background: #1a1c1b; color: var(--text); padding: 11px 14px; font: inherit; font-size: 14px; outline: none; }
.ticket-form textarea { min-height: 100px; resize: vertical; }
.ticket-form input:focus, .ticket-form textarea:focus { border-color: rgba(127,224,184,.5); }
.ticket-form .btn { justify-self: start; }
.t-chat { display: grid; gap: 10px; margin: 14px 0 16px; }
.t-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.t-msg small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.t-msg--staff { background: rgba(127,224,184,.08); border-color: rgba(127,224,184,.3); }
.t-msg--me { justify-self: end; }
.list-item.click { cursor: pointer; }
.list-item.click:hover { border-color: rgba(127,224,184,.35); }

/* roulette */
.roulette { position: relative; height: 110px; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.roulette__marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; box-shadow: 0 0 12px var(--accent); }
.roulette__track { display: flex; gap: 8px; padding: 10px; height: 100%; will-change: transform; }
.prize { flex: 0 0 120px; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; background: #1f2321; border-bottom: 3px solid #555; }
.prize--common { border-color: #7d8a84; }
.prize--rare { border-color: #5aa9ff; }
.prize--epic { border-color: #b57bff; }
.prize--legend { border-color: var(--accent); color: var(--accent); }

/* ---- right column ---- */
.dash__right { display: grid; gap: 24px; }
.top-actions { display: grid; grid-template-columns: 1fr .95fr; gap: 12px; }
.top-actions .btn { height: 34px; border-radius: 9px; }
.box { padding: 22px 20px; background: #161817; border-radius: 18px; display: grid; gap: 4px; }
.box > b { font-size: 15px; }
.box > small { color: #6f7672; font-size: 13px; margin-bottom: 14px; }
.box .btn { height: 30px; font-size: 13px; border-radius: 8px; }
.box__label { color: #8a918d; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.key-form { display: grid; gap: 12px; }
.sub-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1c1f1e; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.sub-row small { color: var(--muted); }
.code { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1c1f1e; border-radius: 10px; margin-bottom: 12px; font-family: ui-monospace, Consolas, monospace; }
.code span { font-size: 22px; letter-spacing: .25em; color: var(--accent); font-weight: 700; cursor: pointer; }
.code em { font-style: normal; color: var(--muted); font-size: 12px; }

@media (max-width: 1150px) {
  .dash { grid-template-columns: 230px minmax(0, 1fr); }
  .dash__right { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 780px) {
  .dash { grid-template-columns: 1fr; padding-top: 96px; }
  .side-nav { margin-top: 14px; padding: 0; grid-template-columns: 1fr 1fr; }
  .side-nav button { padding: 12px; font-size: 13px; }
  .dash__main .pane > *:not(.banner) { margin-left: 0; margin-right: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .user-chip__name { display: none; }
}
