* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
    color: #1f2937;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-panel,
.content-panel,
.metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.auth-panel {
    width: 100%;
    max-width: 430px;
    padding: 28px;
}

.brand,
.topbar,
.topbar nav,
.summary-grid {
    display: flex;
    align-items: center;
}

.brand,
.topbar {
    justify-content: space-between;
}

.brand span,
.topbar strong {
    font-weight: 700;
    color: #111827;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: 30px;
}

h2 {
    margin-bottom: 18px;
    font-size: 20px;
}

.lead,
.hint {
    color: #6b7280;
    line-height: 1.7;
}

.form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
}

input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button,
.small-btn {
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form input {
    width: 120px;
    height: 34px;
}

.secondary-btn {
    background: #64748b;
}

.withdrawal-form {
    max-width: 480px;
}

.search-form {
    margin: 0 0 18px;
}

.search-form input {
    width: min(320px, 60vw);
}

button {
    height: 46px;
}

.small-btn {
    height: 34px;
    padding: 0 14px;
}

.foot-link {
    margin-top: 18px;
    color: #6b7280;
    text-align: center;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.topbar {
    margin-bottom: 22px;
}

.topbar span {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 14px;
}

.topbar nav {
    gap: 16px;
}

.summary-grid {
    gap: 16px;
    margin-bottom: 18px;
}

.metric {
    flex: 1;
    padding: 20px;
}

.metric span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
}

.metric strong {
    display: block;
    font-size: 24px;
}

.content-panel {
    margin-top: 18px;
    padding: 22px;
}

.copy-input {
    font-family: Consolas, monospace;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.empty {
    color: #6b7280;
    text-align: center;
}

@media (max-width: 720px) {
    .summary-grid,
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar nav {
        margin-top: 14px;
    }
}

/* CMS administration */
.cms-body {
    background: #f3f6fb;
    color: #1b2940;
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.cms-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.cms-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 16px 18px;
    background: #14213a;
    color: #e9f0fc;
}

.cms-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px 38px;
    color: #fff;
}

.cms-brand:hover,
.cms-nav a:hover {
    color: #fff;
}

.cms-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #6a95ff, #2f65e5);
    font-size: 21px;
    font-weight: 800;
}

.cms-brand strong,
.cms-brand small,
.cms-sidebar-bottom strong,
.cms-sidebar-bottom small {
    display: block;
}

.cms-brand strong {
    font-size: 16px;
    letter-spacing: .02em;
}

.cms-brand small,
.cms-sidebar-bottom small {
    margin-top: 4px;
    color: #96a6c1;
    font-size: 12px;
}

.cms-nav-label {
    margin: 4px 14px 12px;
    color: #788aa9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.cms-nav {
    display: grid;
    gap: 5px;
    margin-bottom: 28px;
}

.cms-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 9px;
    color: #acbdd7;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, color .15s;
}

.cms-nav a:hover {
    background: #223451;
}

.cms-nav a.active {
    background: #2b4b86;
    color: #fff;
}

.cms-nav-icon {
    width: 20px;
    color: #9ebcff;
    font-size: 19px;
    line-height: 1;
    text-align: center;
}

.cms-nav-count {
    min-width: 21px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 10px;
    background: #f27a71;
    color: #fff;
    font-size: 11px;
    text-align: center;
}

.cms-sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 17px 10px 4px;
    border-top: 1px solid #32435f;
    font-size: 13px;
}

.cms-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #354d75;
    color: #fff;
    font-weight: 700;
}

.cms-main {
    min-width: 0;
}

.cms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 36px;
    border-bottom: 1px solid #e5ebf3;
    background: #fff;
    font-size: 13px;
}

.cms-breadcrumb {
    color: #5b6c85;
}

.cms-breadcrumb span {
    padding: 0 10px;
    color: #a6b1c2;
}

.cms-top-actions {
    display: flex;
    gap: 22px;
}

.cms-top-actions a {
    color: #3d5b89;
    font-weight: 600;
}

.cms-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 34px 36px 60px;
}

.cms-page-heading,
.cms-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cms-page-heading {
    align-items: flex-end;
    margin-bottom: 24px;
}

.cms-eyebrow {
    margin-bottom: 7px;
    color: #6380aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cms-page-heading h1 {
    margin: 0;
    color: #17233b;
    font-size: 28px;
    font-weight: 750;
}

.cms-date {
    padding-bottom: 3px;
    color: #8290a5;
    font-size: 13px;
}

.cms-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.cms-stat,
.cms-panel {
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(32, 55, 91, .035);
}

.cms-stat {
    display: grid;
    gap: 11px;
    padding: 23px 25px;
    color: #17233b;
}

.cms-stat:hover {
    border-color: #a9bee6;
}

.cms-stat span {
    color: #6b7b93;
    font-size: 13px;
}

.cms-stat strong {
    font-size: 32px;
    line-height: 1.1;
}

.cms-stat small {
    color: #4572c5;
    font-size: 12px;
    font-weight: 700;
}

.cms-stat-accent {
    background: #eaf1ff;
    border-color: #d8e5fb;
}

.cms-overview-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
}

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

.cms-chart {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    height: 210px;
    padding: 6px 0 0;
    border-bottom: 1px solid #e6edf5;
}

.cms-chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.cms-chart-bar-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 174px;
}

.cms-chart-bar {
    width: min(25px, 80%);
    min-height: 2px;
    border-radius: 5px 5px 0 0;
    background: #4b77d6;
}

.cms-chart-pair .cms-chart-bar {
    width: min(18px, 42%);
}

.cms-chart-bar.green { background: #2dbb84; }
.cms-chart-bar.coral { background: #f48c7d; }

.cms-chart-column strong {
    margin-top: 9px;
    color: #8a98aa;
    font-size: 11px;
    font-weight: 600;
}

.cms-chart-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #7b89a0;
    font-size: 11px;
}

.cms-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
}

.cms-legend-dot:first-child { margin-left: 0; }
.cms-legend-dot.blue { background: #4b77d6; }
.cms-legend-dot.green { background: #2dbb84; }
.cms-legend-dot.coral { background: #f48c7d; }

.cms-panel {
    margin-bottom: 20px;
    padding: 24px;
}

.cms-panel-head {
    margin-bottom: 20px;
}

.cms-panel-head h2,
.cms-panel h2 {
    margin: 0 0 6px;
    color: #1c2d48;
    font-size: 17px;
}

.cms-panel-head p {
    margin: 0;
    color: #8190a4;
    font-size: 13px;
}

.cms-shortcuts {
    display: grid;
    gap: 10px;
}

.cms-shortcuts a {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid #e6ecf4;
    border-radius: 9px;
    color: #233550;
}

.cms-shortcuts a:hover {
    background: #f7faff;
}

.cms-shortcuts a span {
    grid-row: span 2;
    color: #7895cf;
    font-size: 18px;
    font-weight: 800;
}

.cms-shortcuts a strong {
    font-size: 14px;
}

.cms-shortcuts a small {
    color: #8694a8;
    font-size: 12px;
}

.cms-rule-panel p {
    color: #6b7b93;
    font-size: 13px;
    line-height: 1.7;
}

.cms-rate-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.cms-rate-list span,
.cms-settings-grid div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 13px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #6c7b91;
    font-size: 12px;
}

.cms-rate-list strong {
    color: #315dab;
    font-size: 14px;
}

.cms-body table th {
    background: #f7f9fc;
    color: #74839b;
    font-size: 12px;
}

.cms-body table td {
    color: #34445d;
    font-size: 13px;
}

.cms-body table tr:hover td {
    background: #fbfcff;
}

.cms-body table th,
.cms-body table td {
    padding: 13px 11px;
}

.cms-body .small-btn {
    background: #3568cb;
    font-size: 12px;
}

.cms-body .secondary-btn {
    background: #e9edf4;
    color: #52627a;
}

.cms-body .search-form input {
    width: min(320px, 55vw);
}

.cms-commission-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.cms-commission-form label {
    min-width: 180px;
    flex: 1;
}

.cms-commission-form button {
    padding: 0 22px;
    white-space: nowrap;
}

.cms-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cms-settings-grid div {
    display: grid;
    gap: 7px;
    padding: 17px;
}

.cms-settings-grid strong {
    color: #264675;
    font-size: 20px;
}

.cms-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.cms-status.success {
    background: #e2f7eb;
    color: #167d47;
}

.cms-status.muted {
    background: #eef1f5;
    color: #68788d;
}

@media (max-width: 1050px) {
    .cms-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .cms-content { padding: 26px 22px 45px; }
    .cms-topbar { padding: 0 22px; }
    .cms-overview-grid, .cms-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .cms-shell { display: block; }
    .cms-sidebar { position: relative; height: auto; padding: 16px; }
    .cms-brand { margin: 0 0 16px; }
    .cms-nav-label, .cms-sidebar-bottom { display: none; }
    .cms-nav { display: flex; overflow-x: auto; margin: 0 0 6px; }
    .cms-nav a { flex: none; white-space: nowrap; }
    .cms-topbar { min-height: 58px; }
    .cms-content { padding: 22px 15px 40px; }
    .cms-summary-grid, .cms-settings-grid { grid-template-columns: 1fr; }
    .cms-page-heading { align-items: flex-start; }
    .cms-date { display: none; }
    .cms-panel { padding: 18px 14px; }
}

/* Member app */
.member-body {
    background: #f4f7fc;
    color: #1b2b47;
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.member-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.member-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e7ecf5;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.member-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 70px;
}

.member-logo,
.member-auth-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #19345b;
    font-size: 20px;
    letter-spacing: -.04em;
}

.member-logo-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: #3569d9;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.member-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.member-nav a,
.member-exit {
    color: #60728e;
    font-size: 13px;
    font-weight: 600;
}
.member-language, .member-auth-language { display: flex; align-items: center; gap: 5px; color: #a0adbf; font-size: 12px; }
.member-language a, .member-auth-language a { color: #8090a7; font-weight: 700; }
.member-language a.active, .member-auth-language a.active { color: #3569d9; }
.member-auth-language { position: absolute; top: 24px; right: 28px; }

.member-nav a:hover,
.member-exit:hover { color: #3569d9; }
.member-nav a.active { color: #285fc9; }

.member-exit {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #dce4f1;
}

.member-main {
    padding: 26px 0 54px;
}

.member-page-heading { margin: 8px 0 24px; }
.member-page-heading span { color: #6686bd; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.member-page-heading h1 { margin: 7px 0 8px; color: #203759; font-size: 30px; }
.member-page-heading p { margin: 0; color: #70819a; font-size: 13px; line-height: 1.7; }
.member-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member-shortcuts a { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-content: start; min-height: 150px; padding: 22px; border: 1px solid #e5ebf3; border-radius: 18px; background: #fff; box-shadow: 0 8px 27px rgba(31, 60, 111, .045); }
.member-shortcuts a:hover { border-color: #a9c4fa; transform: translateY(-2px); }
.member-shortcuts .member-card-icon { grid-column: 1 / 3; margin-bottom: 6px; }
.member-shortcuts strong { color: #213959; font-size: 16px; }
.member-shortcuts small { grid-column: 1; color: #8493a9; font-size: 12px; }
.member-shortcuts b { grid-column: 2; grid-row: 2 / 4; align-self: center; color: #3569d9; font-size: 20px; }
.member-withdraw-layout { grid-template-columns: minmax(0, 640px); }
.member-invite-layout { grid-template-columns: minmax(0, 720px); }

.member-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 215px;
    padding: 38px 46px;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(circle at 85% 20%, rgba(143, 180, 255, .37), transparent 34%), linear-gradient(120deg, #172d59, #2b57ad 64%, #5079cf);
    color: #fff;
    box-shadow: 0 20px 40px rgba(39, 85, 167, .17);
}

.member-overline {
    margin-bottom: 13px;
    color: #abc9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.member-hero h1 {
    margin: 0 0 11px;
    color: #fff;
    font-size: 32px;
}

.member-hero p {
    margin: 0;
    color: #d1e2ff;
    font-size: 14px;
}

.member-hero-status {
    min-width: 150px;
    padding: 17px 21px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .11);
}

.member-hero-status span,
.member-hero-status strong { display: block; }
.member-hero-status span { margin-bottom: 7px; color: #d2e0fa; font-size: 12px; }
.member-hero-status strong { color: #fff; font-size: 16px; }

.member-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.member-stat,
.member-card {
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 27px rgba(31, 60, 111, .045);
}

.member-stat {
    display: grid;
    gap: 9px;
    padding: 23px 26px;
}

.member-stat span {
    color: #75859e;
    font-size: 13px;
}

.member-stat strong {
    color: #203759;
    font-size: 27px;
    line-height: 1.2;
}

.member-stat small {
    color: #8e9cb0;
    font-size: 11px;
}

.member-stat-team {
    border-color: #dce8ff;
    background: #edf4ff;
}

.member-stat-team strong { color: #285dbd; }

.member-feature-grid,
.member-bottom-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.member-card {
    min-width: 0;
    padding: 28px;
}

.member-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.member-card-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: #dff5eb;
    color: #159564;
    font-size: 19px;
    font-weight: 800;
}

.member-card-icon.blue { background: #e6efff; color: #3168d0; }

.member-card-kicker {
    color: #6c81a2;
    font-size: 12px;
    font-weight: 700;
}

.member-card h2 {
    margin: 0 0 9px;
    color: #1e3353;
    font-size: 21px;
}

.member-card > p {
    margin: 0 0 24px;
    color: #70819a;
    font-size: 13px;
    line-height: 1.75;
}

.member-field-label {
    display: block;
    margin-bottom: 9px;
    color: #485c79;
    font-size: 12px;
    font-weight: 700;
}

.member-copy-row {
    display: flex;
    gap: 8px;
}

.member-copy-row input {
    min-width: 0;
    background: #f6f8fc;
    color: #50627e;
    font-size: 13px;
}

.member-copy-row button {
    flex: none;
    padding: 0 15px;
    white-space: nowrap;
}

.member-invite-card small {
    display: block;
    margin-top: 14px;
    color: #8392a7;
    font-size: 11px;
    line-height: 1.6;
}

.member-form {
    display: grid;
    gap: 14px;
}

.member-form label {
    display: block;
    color: #445771;
    font-size: 12px;
    font-weight: 700;
}

.member-form input {
    display: block;
    margin-top: 8px;
    background: #fff;
    font-weight: 400;
}

.member-form button,
.member-copy-row button {
    border-radius: 9px;
    background: #3569d9;
    color: #fff;
    font-size: 13px;
}

.member-form button:hover,
.member-copy-row button:hover { background: #2457c2; }

.member-notice {
    padding: 17px 18px;
    border-radius: 10px;
    background: #eef3fc;
    color: #536b92;
    font-size: 13px;
    line-height: 1.7;
}

.member-table-card {
    margin-bottom: 20px;
}

.member-team-card {
    margin-bottom: 20px;
}

.member-team-card > p {
    margin-bottom: 20px;
}

.member-team-levels {
    display: grid;
    gap: 11px;
}

.member-team-level {
    display: grid;
    grid-template-columns: 72px 125px minmax(60px, 1fr) 125px;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f7f9fd;
    font-size: 12px;
}

.member-team-depth {
    color: #3d5c8d;
    font-weight: 700;
}

.member-team-count { color: #596b85; }
.member-team-count small { color: #9aa9bc; }

.member-team-bar-track {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #e5ecf6;
}

.member-team-bar-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5e86df, #3c6ed1);
}

.member-team-level strong {
    color: #294d86;
    text-align: right;
}

.member-bottom-grid .member-table-card { margin-bottom: 0; }

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

.member-section-head span {
    display: block;
    margin-bottom: 6px;
    color: #6686bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.member-section-head h2 { margin: 0; }
.member-section-head p { margin: 0; color: #9aa7b8; font-size: 12px; }

.member-table-card th {
    background: #f7f9fd;
    color: #75869f;
    font-size: 12px;
}

.member-table-card td {
    color: #425672;
    font-size: 12px;
}

.member-table-card th,
.member-table-card td { padding: 13px 11px; }

.member-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.member-pill.paid { background: #e3f7eb; color: #168353; }
.member-pill.pending { background: #fff2d9; color: #a56a10; }
.member-pill.flushed { background: #eef1f5; color: #68788d; }

.member-footer {
    padding: 0 0 28px;
    color: #9aa8bb;
    font-size: 12px;
    text-align: center;
}

.member-bottom-nav { display: none; }

/* Member registration and login */
.member-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    min-height: 100vh;
}

.member-auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 36px max(42px, calc((100vw - 1250px) / 2));
    background: radial-gradient(circle at 90% 75%, rgba(103, 155, 255, .45), transparent 32%), linear-gradient(145deg, #182d53, #2f59a6);
    color: #fff;
}

.member-auth-story .member-logo { color: #fff; }
.member-auth-story .member-logo-mark { background: rgba(255,255,255,.17); }

.member-auth-story-main {
    max-width: 490px;
}

.member-auth-tag {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 99px;
    color: #d6e5ff;
    font-size: 12px;
}

.member-auth-story h1 {
    margin: 0 0 21px;
    color: #fff;
    font-size: clamp(32px, 3.4vw, 51px);
    line-height: 1.22;
}

.member-auth-story p {
    max-width: 410px;
    color: #c6d8f5;
    font-size: 15px;
    line-height: 1.8;
}

.member-auth-story > small { color: #a6bde5; }

.member-auth-steps {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.member-auth-steps span {
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 9px;
    color: #e4edff;
    font-size: 12px;
}

.member-auth-steps b { margin-right: 7px; color: #9fc1ff; }

.member-auth-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.member-auth-card {
    width: min(100%, 420px);
}

.member-auth-kicker {
    margin-bottom: 11px;
    color: #4c75bd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.member-auth-card h2 {
    margin: 0 0 9px;
    color: #1c3152;
    font-size: 31px;
}

.member-auth-card > p {
    margin: 0 0 32px;
    color: #7586a0;
    font-size: 13px;
    line-height: 1.7;
}

.member-auth-card .member-form { gap: 18px; }
.member-auth-card .member-form label { font-size: 13px; }
.member-auth-card .member-form input { height: 48px; }
.member-auth-card .member-form button { margin-top: 5px; font-size: 15px; }
.member-auth-card .member-form button span { margin-left: 8px; }
.member-optional { color: #9cabbf; font-weight: 400; }

.member-auth-switch {
    margin-top: 27px;
    color: #8290a5;
    font-size: 13px;
    text-align: center;
}

.member-auth-switch a { margin-left: 5px; font-weight: 700; }

.member-auth-admin { margin-top: 25px; text-align: center; }
.member-auth-admin a { color: #9ba9bb; font-size: 12px; }
.member-auth-mobile-logo { display: none; }

@media (max-width: 950px) {
    .member-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-feature-grid, .member-bottom-grid { grid-template-columns: 1fr; }
    .member-auth-story { padding: 30px; }
}

@media (max-width: 700px) {
    .member-container { width: calc(100% - 28px); }
    .member-header-inner { min-height: 58px; }
    .member-nav { display: none; }
    .member-exit { margin-left: auto; border: 0; }
    .member-main { padding: 15px 0 70px; }
    .member-hero { align-items: flex-start; min-height: 190px; padding: 24px 22px; border-radius: 20px; }
    .member-hero h1 { font-size: 26px; }
    .member-hero p { max-width: 220px; line-height: 1.6; }
    .member-hero-status { min-width: 93px; padding: 10px; }
    .member-hero-status span { font-size: 10px; }
    .member-hero-status strong { font-size: 12px; }
    .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
    .member-stat { padding: 17px; border-radius: 15px; }
    .member-stat:first-child, .member-stat:nth-child(2) { grid-column: span 2; }
    .member-stat strong { font-size: 22px; }
    .member-page-heading { margin: 8px 0 18px; }
    .member-page-heading h1 { font-size: 25px; }
    .member-shortcuts { gap: 10px; }
    .member-shortcuts a { min-height: 132px; padding: 17px; border-radius: 15px; }
    .member-shortcuts strong { font-size: 14px; }
    .member-shortcuts small { font-size: 11px; }
    .member-feature-grid, .member-bottom-grid { gap: 12px; margin-bottom: 12px; }
    .member-card { padding: 21px 18px; border-radius: 17px; }
    .member-card h2 { font-size: 19px; }
    .member-team-level { grid-template-columns: 65px 1fr auto; gap: 6px 9px; }
    .member-team-bar-track { grid-column: 2 / 4; grid-row: 2; }
    .member-team-level strong { grid-column: 3; grid-row: 1; }
    .member-team-count small { display: none; }
    .member-table-card { margin-bottom: 12px; }
    .member-bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e3eaf4; background: #fff; box-shadow: 0 -8px 24px rgba(30,55,95,.07); }
    .member-bottom-nav a { display: grid; gap: 3px; justify-items: center; color: #6d7d96; font-size: 10px; }
    .member-bottom-nav a span { color: #3569d9; font-size: 21px; line-height: 1; }
    .member-bottom-nav a.active { color: #285fc9; font-weight: 800; }
    .member-footer { padding-bottom: 30px; }
    .member-auth-shell { display: block; }
    .member-auth-story { display: none; }
    .member-auth-main { display: block; min-height: 100vh; padding: 27px 20px 44px; }
    .member-auth-mobile-logo { display: inline-flex; margin-bottom: 50px; }
    .member-auth-card { width: 100%; }
    .member-auth-card h2 { font-size: 28px; }
    .member-auth-card > p { margin-bottom: 27px; }
    .member-auth-card .member-form input { height: 50px; }
}
