/* v2/css/member.css - Kod kullanma, oyun seçimi ve kütüphane sayfaları */

body.modal-open {
    overflow: hidden;
}

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 170px);
}

.page-header-center {
    text-align: center;
}

.page-header-center h1 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.page-header-center h1 i {
    font-size: 0.75em;
    color: #a275f0;
}

/* ---------- Auth / status card ---------- */
.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 36px 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.auth-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #a275f0);
    box-shadow: 0 10px 28px rgba(99, 80, 242, 0.45);
}

.auth-card h1,
.auth-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.auth-card > p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-card > p strong {
    color: #fff;
}

.code-input {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.code-input::placeholder {
    color: #5a6278;
    font-weight: 400;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 80, 242, 0.2);
}

.form-error {
    margin: -2px 0 12px;
    color: #fca5a5;
    font-size: 13px;
}

.auth-foot {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-foot a {
    color: #a275f0;
    font-weight: 600;
    text-decoration: none;
}

.status-ring {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid var(--success);
    color: var(--success);
    font-size: 34px;
    box-shadow: 0 0 30px rgba(26, 213, 152, 0.3);
}

.status-progress {
    height: 5px;
    margin: 6px 0 14px;
    border-radius: 99px;
    background: var(--bg-lighter);
    overflow: hidden;
}

.status-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 1.7s linear;
}

.status-link {
    color: #a275f0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Game selection ---------- */
.rights-chip,
.count-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.rights-chip {
    margin-top: 18px;
}

.rights-chip strong {
    font-size: 22px;
    color: var(--success);
}

.count-chip strong {
    color: #fff;
}

.selected-box {
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-box .section-label {
    margin-bottom: 12px;
}

.selected-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border-radius: 8px;
    background: rgba(99, 80, 242, 0.18);
    border: 1px solid rgba(99, 80, 242, 0.4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.selected-pill button {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fca5a5;
    cursor: pointer;
}

.selected-pill button:hover {
    background: rgba(248, 113, 113, 0.15);
}

.select-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.select-toolbar .search-field {
    flex: 1;
    min-width: 0;
}

.select-toolbar .search-field input {
    padding-top: 12px;
    padding-bottom: 12px;
}

.sort-toggle {
    display: flex;
    gap: 8px;
}

.select-card {
    cursor: pointer;
    position: relative;
}

.select-card:focus-visible {
    outline: 2px solid #a275f0;
    outline-offset: 3px;
}

.select-card.is-selected {
    border-color: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

.select-card.is-owned,
.select-card.is-locked {
    cursor: not-allowed;
}

.select-card.is-owned .card-cover,
.select-card.is-locked .card-cover {
    filter: grayscale(0.7) brightness(0.6);
}

.select-check {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: var(--success);
    color: #06281d;
    font-size: 13px;
}

.select-card.is-selected .select-check {
    display: grid;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(249, 168, 38, 0.1);
    border: 1px solid rgba(249, 168, 38, 0.35);
    color: var(--warning);
}

.card-tag.owned {
    background: rgba(26, 213, 152, 0.1);
    border-color: rgba(26, 213, 152, 0.35);
    color: var(--success);
}

.card-tag.locked {
    background: rgba(162, 117, 240, 0.12);
    border-color: rgba(162, 117, 240, 0.35);
    color: #c4b5fd;
}

.select-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 14px max(20px, calc((100% - 1200px) / 2));
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.select-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.select-bar-inner strong {
    color: #fff;
}

body.has-select-bar .site-footer {
    padding-bottom: 96px;
}

/* ---------- Modals ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 6, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.modal-panel.wide {
    max-width: 560px;
}

.modal-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 28px;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.modal-title i {
    margin-top: 3px;
    color: #a275f0;
}

.modal-text {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.modal-text strong {
    color: var(--warning);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.modal-panel .btn-block + .btn-block {
    margin-top: 10px;
}

/* Account choice */
.account-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.account-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.account-option:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
}

.account-option[aria-checked="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background: rgba(99, 80, 242, 0.12);
}

.account-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.account-option:focus-visible {
    outline: 2px solid #a275f0;
    outline-offset: 2px;
}

.account-option strong {
    display: block;
    font-size: 15px;
}

.account-option small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.account-forced {
    color: var(--success);
    font-weight: 700;
}

.account-lock-tag {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(26, 213, 152, 0.1);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

/* ---------- Library ---------- */
.title-rule {
    display: block;
    width: 48px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.lib-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lib-stat {
    padding: 26px 16px;
    text-align: center;
}

.lib-stat + .lib-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.lib-stat strong {
    display: block;
    margin-bottom: 8px;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.lib-stat:first-child strong {
    color: var(--success);
}

.lib-stat span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lib-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.lib-toolbar .search-field {
    flex: 1;
    min-width: 0;
}

.lib-toolbar .search-field input {
    padding-top: 12px;
    padding-bottom: 12px;
}

.rights-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(26, 213, 152, 0.08);
    border: 1px solid rgba(26, 213, 152, 0.3);
    color: #d1fae5;
    font-size: 14px;
}

.lib-card .card-body {
    gap: 10px;
}

.lib-account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.lib-card .btn-primary,
.lib-locked {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
}

.lib-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    background: rgba(249, 168, 38, 0.1);
    border: 1px solid rgba(249, 168, 38, 0.45);
    color: var(--warning);
    font-weight: 700;
    cursor: pointer;
}

.empty-card .btn-primary,
.empty-card .btn-secondary {
    margin-top: 18px;
}

.empty-card .empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Instructions (platform tabs) */
.help-panel {
    max-width: 1000px;
    padding: 28px;
}

.help-head h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 40px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.help-head h2 i {
    color: #c4b5fd;
    font-size: 0.85em;
}

.help-head p {
    margin: 14px 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.platform-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 8px;
    padding: 10px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.platform-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.platform-tab:focus-visible {
    outline: 2px solid #a275f0;
    outline-offset: 2px;
}

.platform-tab[aria-selected="true"] {
    border-color: var(--primary);
    background: rgba(99, 80, 242, 0.12);
    box-shadow: 0 0 20px rgba(99, 80, 242, 0.35);
}

.platform-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.platform-logo i {
    font-size: 22px;
}

.logo-steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.logo-epic {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

.logo-ea {
    background: #ff4747;
    font-size: 15px;
    font-style: italic;
}

.logo-ubisoft {
    background: #0a74ff;
    font-size: 11px;
}

.logo-microsoft {
    background: #0067b8;
}

.logo-rockstar {
    background: #fcaf17;
    color: #1a1204;
    font-size: 14px;
}

.platform-tab-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.platform-tab-chip {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.platform-tab-chip::after {
    content: 'SEÇ';
}

.platform-tab[aria-selected="true"] .platform-tab-chip {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.platform-tab[aria-selected="true"] .platform-tab-chip::after {
    content: 'SEÇİLİ';
}

.help-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.help-steps-card {
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
}

.help-steps-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-steps-title .platform-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}

.help-steps-title .platform-logo i {
    font-size: 16px;
}

.help-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    counter-reset: step;
}

.help-steps-list li {
    position: relative;
    min-height: 46px;
    padding: 10px 10px 10px 50px;
    border-radius: 10px;
    color: #c3c9d8;
    font-size: 14px;
    line-height: 1.55;
    counter-increment: step;
}

.help-steps-list li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.help-steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 10px;
    top: 9px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(99, 80, 242, 0.4);
}

.help-steps-list strong,
.help-note strong {
    color: #fff;
}

.help-body code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.help-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-note {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid;
}

.help-note h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.help-note ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-note li {
    position: relative;
    padding-left: 16px;
    color: #c3c9d8;
    font-size: 13px;
    line-height: 1.55;
}

.help-note li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.help-note.warn {
    background: rgba(249, 168, 38, 0.06);
    border-color: rgba(249, 168, 38, 0.25);
    border-left: 3px solid var(--warning);
}

.help-note.warn h3 {
    color: var(--warning);
    border-color: rgba(249, 168, 38, 0.25);
}

.help-note.warn li::before {
    background: var(--warning);
}

.help-note.fix {
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.25);
    border-left: 3px solid #0ea5e9;
}

.help-note.fix h3 {
    color: #f87171;
    border-color: rgba(14, 165, 233, 0.25);
}

.help-note.fix li::before {
    background: #0ea5e9;
}

/* Warning (before credentials) */
.warn-panel {
    text-align: center;
}

.warn-title {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
}

.note-box {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: rgba(27, 138, 219, 0.1);
    border: 1px solid rgba(27, 138, 219, 0.35);
    color: #cfe8fb;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.note-box strong {
    color: #93c5fd;
}

.countdown {
    font-size: 48px;
    font-weight: 800;
    color: #a275f0;
    font-variant-numeric: tabular-nums;
}

.countdown-bar {
    width: 70%;
    height: 4px;
    margin: 10px auto 8px;
    border-radius: 99px;
    background: var(--bg-lighter);
    overflow: hidden;
}

.countdown-bar span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--primary);
}

.countdown-label {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Credentials */
.cred-title {
    margin-bottom: 18px;
    font-size: 21px;
    font-weight: 800;
    text-align: center;
    color: #fff;
}

.cred-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    color: #fff;
}

.cred-head strong {
    display: block;
    font-size: 17px;
    color: #fff;
}

.cred-head small {
    color: var(--text-muted);
    font-size: 12px;
}

.cred-box {
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.cred-row + .cred-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(99, 80, 242, 0.2);
    color: #c4b5fd;
    font-size: 13px;
}

.cred-label {
    flex-shrink: 0;
    width: 88px;
    color: var(--text-muted);
    font-size: 12px;
}

.cred-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
}

.cred-value.guard-ok {
    color: var(--success);
    font-weight: 600;
}

.icon-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.icon-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.icon-btn[aria-pressed="true"] {
    color: var(--success);
    border-color: rgba(26, 213, 152, 0.5);
}

.cred-tip {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(99, 80, 242, 0.3);
    background: rgba(99, 80, 242, 0.08);
    color: #c3c9d8;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.cred-tip strong {
    color: #c4b5fd;
}

.cred-tip strong.ok {
    color: var(--success);
}

.guard-box {
    padding: 18px 16px;
    border-radius: 12px;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.guard-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 10px;
    border-radius: 99px;
    border: 1px solid rgba(99, 80, 242, 0.5);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guard-help {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.guard-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid rgba(26, 213, 152, 0.45);
    background: rgba(26, 213, 152, 0.08);
    color: var(--success);
    cursor: pointer;
}

.guard-code span {
    font-family: 'Courier New', monospace;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.35em;
    padding-left: 0.35em;
}

.guard-code small {
    color: var(--text-muted);
    font-size: 12px;
}

.guard-meta {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.guard-meta strong {
    color: #fff;
}

.guard-error {
    margin-bottom: 12px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

.guard-box .btn-primary {
    margin-top: 6px;
}

.guard-box .btn-primary small {
    opacity: 0.75;
    font-weight: 500;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
    .auth-card {
        padding: 28px 20px;
    }

    .select-toolbar,
    .lib-toolbar {
        flex-wrap: wrap;
    }

    .select-toolbar .search-field,
    .lib-toolbar .search-field {
        flex-basis: 100%;
        order: -1;
    }

    .lib-toolbar .btn-primary {
        width: 100%;
    }

    .lib-card .btn-primary,
    .lib-locked {
        gap: 6px;
        padding: 9px 6px;
        font-size: 11.5px;
    }

    .lib-stat {
        padding: 18px 8px;
    }

    .lib-stat strong {
        font-size: 26px;
    }

    .lib-stat span {
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    .select-bar-inner .btn-primary {
        padding: 11px 14px;
    }

    .modal-panel {
        padding: 22px 18px;
    }

    .platform-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
    }

    .platform-tab {
        gap: 8px;
        padding: 8px;
    }

    .platform-logo {
        width: 36px;
        height: 36px;
    }

    .platform-tab-chip {
        display: none;
    }

    .help-body {
        grid-template-columns: 1fr;
    }

    .help-head h2 {
        font-size: 18px;
    }

    .cred-label {
        width: auto;
    }

    .guard-code span {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-progress span {
        transition: none;
    }
}

/* ---------- Credentials: two steps (Steam -> companion platform) ---------- */
.cred-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -6px 0 16px;
    color: var(--text-muted);
}

.cred-step {
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-lighter);
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cred-step span {
    opacity: 0.7;
    font-weight: 600;
}

.cred-step:hover {
    color: #fff;
}

.cred-step.is-active {
    background: rgba(242, 80, 80, 0.18);
    border-color: rgba(242, 80, 80, 0.55);
    color: #fff;
}

.cred-note {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-lighter);
    color: #c3c9d8;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.cred-note.danger {
    border-color: rgba(242, 80, 80, 0.45);
    background: rgba(242, 80, 80, 0.07);
}

.cred-note strong {
    color: #fff;
}

.cred-note strong.ok {
    color: var(--success);
}

.cred-note:empty {
    display: none;
}

.cred-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.cred-switch:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.cred-switch.danger {
    border: none;
    background: var(--danger);
    color: #fff;
    box-shadow: 0 6px 18px rgba(242, 80, 80, 0.3);
}

.cred-switch.ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-lighter);
    color: #fff;
}

.cred-platform-icon .platform-mark {
    min-width: 30px;
    height: 24px;
    font-size: 12px;
}
