/* Аккаунт RxLauncher: вход, регистрация, профиль и админка — в том же стиле, что и главная */
.acc-page { display: flex; flex-direction: column; }
.acc-main { flex: 1 0 auto; padding: 118px 0 80px; }
.acc-nav { margin-left: auto; }
[hidden] { display: none !important; }
/* <button> не наследует цвет и шрифт, как ссылки на главной */
.acc-page button { font-family: inherit; }
.acc-page .btn { color: var(--text); }

.acc-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(14px);
}

/* ---------- загрузка ---------- */
.acc-loading { display: grid; place-items: center; min-height: 50vh; }
.acc-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* ---------- вход и регистрация ---------- */
.acc-auth { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: calc(100vh - 260px); }
.acc-auth-side h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; }
.acc-auth-side > p { max-width: 480px; margin-top: 18px; color: var(--sub); font-size: 17px; }

.acc-form-card { padding: 26px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }

.acc-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.acc-tabs button {
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--sub);
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.acc-tabs button:hover { color: var(--text); }
.acc-tabs button.active { background: var(--accent); color: #fff; }

.acc-form { display: flex; flex-direction: column; gap: 12px; }
.acc-form, .acc-block { animation: acc-in .35s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(6px); } }

.acc-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(11, 11, 13, .55);
    color: var(--muted);
    transition: border-color .2s, box-shadow .2s;
}
.acc-field:focus-within { border-color: rgba(229, 57, 53, .6); box-shadow: 0 0 0 4px rgba(229, 57, 53, .12); color: var(--accent-light); }
.acc-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15.5px;
}
.acc-field input::placeholder { color: var(--muted); }
.acc-eye { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.acc-eye:hover, .acc-eye.on { color: var(--text); background: rgba(255, 255, 255, .06); }

.acc-hint { margin-top: -4px; color: var(--muted); font-size: 13px; }
.acc-error { padding: 10px 12px; border-radius: 11px; background: rgba(229, 57, 53, .12); color: #ff8a86; font-size: 14px; font-weight: 600; }
.acc-submit { width: 100%; margin-top: 4px; }
.acc-submit[disabled], .acc-block button[disabled] { opacity: .6; pointer-events: none; }

/* ---------- профиль ---------- */
.acc-profile { display: flex; flex-direction: column; gap: 14px; }
.acc-me { display: flex; align-items: center; gap: 18px; padding: 22px; }
.acc-head { width: 72px; height: 72px; border-radius: 16px; image-rendering: pixelated; background: var(--card); }
.acc-me-copy { flex: 1 1 auto; min-width: 0; }
.acc-me-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.acc-me-name h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; overflow-wrap: anywhere; }
.acc-me-copy p { margin-top: 4px; color: var(--sub); font-size: 14.5px; }

.acc-group { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.acc-group { gap: 5px; }
.acc-group svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-group[data-group="admin"] { background: rgba(229, 57, 53, .16); color: #ff7b76; }
.acc-group[data-group="tester"] { background: rgba(88, 166, 255, .14); color: #79b8ff; }
.acc-group[data-group="player_plus"] { background: rgba(240, 180, 41, .15); color: #f5c451; }
.acc-group[data-group="player"] { background: rgba(255, 255, 255, .07); color: var(--sub); }

.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.acc-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
.acc-block h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.acc-block h2 .i { color: var(--accent-light); }
.acc-block > p { color: var(--sub); font-size: 14.5px; }
.acc-block .acc-field { width: 100%; height: 46px; }
.acc-block .acc-error { width: 100%; }
.acc-danger h2 .i { color: #ff7b76; }
.acc-page .acc-btn-danger { background: rgba(229, 57, 53, .14); color: #ff8a86; border-color: rgba(229, 57, 53, .35); }
.acc-btn-danger:hover { background: rgba(229, 57, 53, .24); }

/* ---------- админка ---------- */
.acc-admin { margin-top: 38px; }
.acc-admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-admin-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.acc-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-stat { display: flex; flex-direction: column; min-width: 92px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.acc-stat b { font-size: 20px; line-height: 1.2; }
.acc-stat span { color: var(--muted); font-size: 12.5px; font-weight: 700; }

.acc-admin-card { padding: 16px; }
.acc-admin-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.acc-search { flex: 1 1 auto; height: 46px; }
.acc-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.acc-select {
    height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(11, 11, 13, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
    color: var(--text);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    outline: none;
}
.acc-select:focus { border-color: rgba(229, 57, 53, .6); }
.acc-select option { background: #18181b; }

.acc-table { display: flex; flex-direction: column; gap: 6px; }
.acc-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 150px auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 13px;
    background: var(--card);
    border: 1px solid transparent;
    transition: border-color .2s;
}
.acc-row:hover { border-color: var(--line); }
.acc-row img { width: 38px; height: 38px; border-radius: 10px; image-rendering: pixelated; }
.acc-row-copy { min-width: 0; }
.acc-row-copy strong { display: flex; align-items: center; gap: 7px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row-copy span { color: var(--muted); font-size: 12.5px; }
.acc-row .acc-select { height: 38px; border-radius: 11px; font-size: 13.5px; width: 100%; }
.acc-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.acc-dot.on { background: var(--success); box-shadow: 0 0 0 3px rgba(41, 174, 107, .18); }
.acc-badge-ban { padding: 1px 7px; border-radius: 999px; background: rgba(229, 57, 53, .16); color: #ff7b76; font-size: 11px; font-weight: 800; }
.acc-row.banned { opacity: .7; }
.acc-actions { display: flex; gap: 4px; }
.acc-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--sub);
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.acc-icon:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.acc-icon.danger:hover { color: #ff7b76; border-color: rgba(229, 57, 53, .4); background: rgba(229, 57, 53, .1); }
.acc-icon[disabled] { opacity: .35; pointer-events: none; }
.acc-empty { padding: 26px; text-align: center; color: var(--muted); }
.acc-more { margin: 12px auto 0; display: flex; }

/* ---------- уведомление ---------- */
.acc-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 80;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel-solid);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9);
    font-weight: 600;
    font-size: 14.5px;
    transform: translateX(-50%);
    animation: acc-in .3s var(--ease);
}
.acc-toast.ok { border-color: rgba(41, 174, 107, .45); }
.acc-toast.bad { border-color: rgba(229, 57, 53, .5); }
.acc-toast code { padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); font-family: ui-monospace, Consolas, monospace; user-select: all; }

@media (max-width: 1060px) {
    .acc-nav { position: static; display: flex; flex-direction: row; padding: 0; border: 0; background: none; }
}

@media (max-width: 900px) {
    .acc-auth { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
    .acc-grid { grid-template-columns: 1fr; }
    .acc-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .acc-row .acc-select { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
    .acc-main { padding-top: 96px; }
    .acc-form-card, .acc-block, .acc-me { padding: 18px; }
    .acc-me { flex-wrap: wrap; }
    .acc-admin-tools { flex-direction: column; }
    .acc-row { grid-template-columns: 38px minmax(0, 1fr); }
    .acc-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- Discord ---------- */
.acc-discord-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.acc-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.acc-page .acc-discord { background: #5865f2; color: #fff; box-shadow: 0 14px 34px -16px rgba(88, 101, 242, .9); }
.acc-page .acc-discord:hover { filter: brightness(1.08); }
.acc-discord-logo { width: 21px; height: 21px; flex: 0 0 auto; }
.acc-block h2 .acc-discord-logo { color: #8b95ff; }
.acc-center { text-align: center; margin-top: 0; }
.acc-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.acc-solo { display: grid; place-items: center; min-height: calc(100vh - 260px); }
.acc-solo .acc-form-card { width: min(440px, 100%); }
.acc-solo-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; text-align: center; }
.acc-solo-head h1, .acc-done h1 { font-size: 28px; font-weight: 800; }
.acc-solo-head p, .acc-done p { color: var(--sub); font-size: 15px; }
.acc-solo-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.acc-solo-icon.discord { background: #5865f2; color: #fff; }
.acc-solo-icon.discord .acc-discord-logo { width: 34px; height: 34px; }
.acc-solo-icon.ok { background: rgba(41, 174, 107, .16); color: var(--success); }
.acc-solo-icon.ok .i { width: 32px; height: 32px; stroke-width: 2.4; }
.acc-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 28px; text-align: center; }

/* ---------- копирование сборки ---------- */
.acc-wide { grid-column: 1 / -1; }
.acc-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.acc-choice { position: relative; cursor: pointer; }
.acc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.acc-choice > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(11, 11, 13, .45);
    transition: border-color .2s, background-color .2s;
}
.acc-choice > span::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--muted);
    transition: border-color .2s, box-shadow .2s;
}
.acc-choice b { font-size: 15px; }
.acc-choice small { color: var(--muted); font-size: 13px; }
.acc-choice:hover > span { border-color: rgba(255, 255, 255, .2); }
.acc-choice input:checked + span { border-color: rgba(229, 57, 53, .6); background: var(--accent-soft); }
.acc-choice input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px #18181b, inset 0 0 0 8px var(--accent); }
.acc-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(229, 57, 53, .18); }

.acc-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; width: 100%; max-height: 260px; overflow-y: auto; }
.acc-friend { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid transparent; cursor: pointer; }
.acc-friend:hover { border-color: var(--line); }
.acc-friend img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.acc-friend span { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.acc-friend input { width: 18px; height: 18px; accent-color: var(--accent); }
.acc-friends-empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
    .acc-choices { grid-template-columns: 1fr; }
}

/* ---------- достижения ---------- */
.acc-ach-count { font-size: 14px; font-weight: 600; }
.acc-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; width: 100%; }
.acc-ach {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 12px 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .02);
    opacity: .5;
    filter: grayscale(1);
}
.acc-ach.got { opacity: 1; filter: none; border-color: rgba(229, 57, 53, .35); background: linear-gradient(160deg, rgba(229, 57, 53, .1), rgba(255, 255, 255, .02)); }
.acc-ach.got.badge { border-color: rgba(245, 185, 66, .45); background: linear-gradient(160deg, rgba(245, 185, 66, .12), rgba(255, 255, 255, .02)); }
.acc-ach-icon { font-size: 22px; line-height: 1.2; }
.acc-ach b { font-size: 14px; line-height: 1.25; }
.acc-ach > span:not(.acc-ach-icon) { color: var(--muted); font-size: 12px; line-height: 1.35; }
.acc-ach-bar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.acc-ach-bar i { display: block; height: 100%; background: var(--accent); }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- плащ RxLauncher ---------- */
.acc-cape h2 .acc-group { margin-left: 6px; font-size: 12px; }
.cape-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 18px; width: 100%; }
.cape-edit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cape-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.cape-group { display: flex; flex-wrap: wrap; gap: 5px; }
.cape-tool {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: rgba(255, 255, 255, .03);
    color: var(--sub);
    cursor: pointer;
}
.cape-tool:hover:not(:disabled) { color: var(--text); }
.cape-tool.active { color: #fff; border-color: rgba(229, 57, 53, .6); background: var(--accent-soft); }
.cape-tool:disabled { opacity: .4; cursor: default; }
.cape-canvas-wrap { height: 330px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.cape-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; outline: none; }
.cape-colors { display: flex; align-items: center; gap: 10px; }
.cape-colors input[type="color"] { width: 42px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: none; cursor: pointer; }
.cape-palette { display: flex; flex-wrap: wrap; gap: 5px; }
.cape-swatch { width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; cursor: pointer; }
.cape-swatch.current { outline: 2px solid #fff; outline-offset: 1px; }
.cape-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; }
.cape-key { display: inline-block; width: 12px; height: 12px; border: 2px solid; border-radius: 3px; }
.cape-key.gold { border-color: #ffd34d; }
.cape-key.blue { border-color: #6fd3ff; margin-left: 6px; }
.cape-side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.cape-stage { position: relative; height: 330px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(70% 60% at 50% 40%, rgba(229, 57, 53, .12), transparent 70%), rgba(0, 0, 0, .25); overflow: hidden; }
.cape-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.cape-no3d { position: absolute; inset: auto 0 14px; text-align: center; }
.cape-status { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 13.5px; }
.cape-status span { color: var(--sub); font-size: 12.5px; }
.cape-status.is-success { border-color: rgba(41, 174, 107, .45); background: rgba(41, 174, 107, .08); }
.cape-status.is-warning { border-color: rgba(224, 167, 58, .45); background: rgba(224, 167, 58, .08); }
.cape-status.is-error { border-color: rgba(229, 57, 53, .5); background: rgba(229, 57, 53, .08); }
@media (max-width: 900px) {
    .cape-layout { grid-template-columns: 1fr; }
    .cape-canvas-wrap, .cape-stage { height: 260px; }
}
