:root {
    --bg: #f6f8fa;
    --canvas: #ffffff;
    --canvas-subtle: #f6f8fa;
    --ink: #1f2328;
    --muted: #59636e;
    --line: #d0d7de;
    --accent: #0969da;
    --accent-strong: #1f6feb;
    --success: #1a7f37;
    --warning: #9a6700;
    --danger: #cf222e;
    --shadow: 0 1px 0 rgba(27, 31, 36, 0.04), 0 12px 32px rgba(31, 35, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at top center, rgba(31, 111, 235, 0.08), transparent 24%),
        linear-gradient(180deg, #f6f8fa 0%, #eef2f6 100%);
    color: var(--ink);
}

body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.2), transparent 22%),
        linear-gradient(180deg, #14345f 0%, #102948 55%, #0f2240 100%);
}

body.account-app-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #15355f 0%, #1b426f 38%, #f5f2ee 38%, #f7f4ef 100%);
}

body.admin-app-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #16365f 0%, #1d4571 30%, #f4f3ef 30%, #f8f6f1 100%);
}

body.theme-dark.admin-app-body,
body.theme-dark.account-app-body {
    background: linear-gradient(180deg, #0d1726 0%, #14263d 32%, #0f1623 32%, #121a28 100%);
    color: #f0f4fa;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

body.auth-body .page-shell {
    min-height: 100vh;
}

body.account-app-body .page-shell {
    min-height: 100vh;
}

body.admin-app-body .page-shell {
    min-height: 100vh;
}

body.auth-body .page-content {
    padding: 0;
}

body.account-app-body .page-content {
    padding: 0;
}

body.admin-app-body .page-content {
    padding: 24px 16px 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 48px);
    background: rgba(13, 17, 23, 0.92);
    border-bottom: 1px solid rgba(208, 215, 222, 0.12);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-launcher {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 246, 252, 0.16);
    background: rgba(240, 246, 252, 0.06);
    color: #f0f6fc;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f6feb, #0d419d);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand {
    font-size: 1.08rem;
    font-weight: 700;
    color: #f0f6fc;
}

.subbrand {
    margin: 4px 0 0;
    color: #8b949e;
    font-size: 0.88rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-user {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(240, 246, 252, 0.08);
    color: #f0f6fc;
    border: 1px solid rgba(240, 246, 252, 0.12);
}

.nav-link-pill {
    padding: 9px 13px;
    border-radius: 10px;
    color: #f0f6fc;
    border: 1px solid rgba(240, 246, 252, 0.14);
    background: rgba(240, 246, 252, 0.04);
}

.nav-link-pill-danger {
    color: #ffb4b8;
}

.page-content {
    padding: 28px clamp(18px, 4vw, 48px) 48px;
}

.hero,
.auth-grid,
.stats-grid,
.music-grid,
.form-grid,
.content-stack {
    display: grid;
    gap: 18px;
}

.hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.auth-grid,
.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.music-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.page-hero {
    display: grid;
    gap: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    opacity: 0.85;
    pointer-events: none;
}

.page-hero-admin::after {
    background: radial-gradient(circle, rgba(31, 111, 235, 0.18), transparent 70%);
}

.page-hero-user::after {
    background: radial-gradient(circle, rgba(26, 127, 55, 0.16), transparent 70%);
}

.section-heading,
.hero-copy h1,
.card h2,
.card h3 {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    margin-bottom: 16px;
}

.hero-user-name {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.muted,
.hero-copy p {
    color: var(--muted);
}

.section-title-row,
.page-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.page-section-header {
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    min-width: 0;
}

.stat-card strong {
    display: block;
    max-width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.stat-label,
.sidebar-meta-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(9, 105, 218, 0.12);
    border-color: var(--accent);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 82px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    background: #f6f8fa;
    color: var(--ink);
    cursor: pointer;
}

.password-toggle:hover {
    background: #eaeef2;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #1f2328;
    cursor: pointer;
    font-weight: 700;
}

.card h2,
.card h3,
.section-heading,
.hero-user-name,
.table-wrap td,
.table-wrap th,
.field label,
.section-title-row,
.page-section-header {
    color: #1f2328;
}

.card p,
.card li,
.card strong,
.card label,
.card a,
.table-wrap a,
.stat-card strong,
.music-card h3,
.music-meta-item strong {
    color: #1f2328;
}

.card .muted,
.card span.muted,
.table-wrap .muted,
.stat-label,
.music-meta-label {
    color: #59636e;
}

.account-app-page-shell .theme-toggle,
.account-app-theme-toggle,
.admin-app-body .theme-toggle-sidebar {
    position: fixed;
    top: 18px;
    right: 16px;
    z-index: 45;
}

body.theme-dark .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f4fa;
    border-color: rgba(240, 244, 250, 0.16);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}

.auth-stage {
    width: 100%;
    max-width: 460px;
    display: grid;
    gap: 26px;
}

.auth-brand-block {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-top: 24px;
}

.auth-brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #2d7df6 0%, #164ea4 100%);
    box-shadow: 0 20px 40px rgba(6, 20, 44, 0.35);
}

.auth-brand-name {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.auth-panel {
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 34px;
    padding: 30px 24px 28px;
    box-shadow: 0 28px 60px rgba(6, 20, 44, 0.28);
    backdrop-filter: blur(10px);
}

.auth-panel-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-panel-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #1c2433;
}

.auth-panel-header p {
    margin: 0;
    color: #7a8190;
    font-size: 1rem;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    margin-bottom: 0;
}

.auth-field label {
    color: #4d5563;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 0 16px;
    border: 1px solid #dbe3f5;
    border-radius: 18px;
    background: #edf3ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-input-shell input {
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 60px;
    color: #1f2328;
}

.auth-input-shell input:focus {
    outline: none;
    border-color: transparent;
}

.auth-input-shell:focus-within {
    outline: 3px solid rgba(45, 125, 246, 0.14);
    border-color: #7baefb;
}

.auth-input-prefix {
    flex: 0 0 auto;
    color: #667085;
    font-weight: 600;
}

.auth-input-shell-password {
    padding-right: 10px;
}

.password-toggle-auth {
    position: static;
    transform: none;
    min-width: 62px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
}

.auth-meta-row {
    display: flex;
    justify-content: flex-end;
}

.auth-meta-note {
    margin: 0;
    color: #7a8190;
    font-size: 0.9rem;
}

.auth-submit {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    font-size: 1.05rem;
    background: linear-gradient(180deg, #4c8eff 0%, #2f73ea 100%);
}

.auth-switch-copy {
    margin: 24px 0 0;
    text-align: center;
    color: #5f6675;
    font-size: 1rem;
}

.auth-switch-copy a {
    color: #2f73ea;
    font-weight: 700;
}

.account-app-shell {
    min-height: 100vh;
    padding-bottom: 34px;
}

.account-app-topband {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #6c7382;
    font-size: 0.84rem;
    overflow: hidden;
    white-space: nowrap;
}

.account-app-live {
    color: #12a150;
    font-weight: 700;
}

.account-app-hero {
    padding: 20px 18px 112px;
    color: #ffffff;
    background:
        radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #15355f 0%, #1d446f 100%);
}

.account-app-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.account-app-greeting {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    font-weight: 600;
}

.account-app-balance {
    margin: 0;
    font-size: clamp(2.8rem, 12vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
}

.account-app-referral-balance {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.account-app-logout {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

.account-app-hero-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.account-app-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.account-app-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-app-stat-row strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
}

.account-app-stat-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-app-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.account-app-action-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    font-weight: 600;
    max-width: 32rem;
}

.account-app-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.account-app-action.is-light {
    border-color: rgba(255, 255, 255, 0.85);
    background: #ffffff;
    color: #2d5fbe;
}

.account-app-action.is-accent {
    color: #ffe67c;
}

.account-app-content {
    position: relative;
    z-index: 1;
    margin-top: -82px;
    padding: 0 16px 126px;
}

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

.account-app-tile {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(16, 34, 64, 0.08);
    color: #2f3747;
    text-align: center;
    font-weight: 600;
}

.account-app-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    color: #2d73ea;
    font-size: 0.82rem;
    font-weight: 800;
}

.account-app-tile-icon svg,
.account-app-nav-icon svg {
    width: 24px;
    height: 24px;
}

.account-app-card {
    margin-bottom: 18px;
    padding: 22px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(16, 34, 64, 0.08);
}

.account-app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.account-app-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.account-app-card-header a {
    color: #2d73ea;
    font-weight: 700;
}

.account-app-list {
    display: grid;
    gap: 12px;
}

.account-app-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1f6;
}

.account-app-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.account-app-list-item strong,
.account-app-feature-item strong {
    display: block;
}

.account-app-list-item span,
.account-app-feature-item span,
.account-app-feature-item em {
    display: block;
    margin-top: 4px;
    color: #7a8190;
    font-style: normal;
}

.account-app-feature-grid {
    display: grid;
    gap: 12px;
}

.account-app-feature-item {
    padding: 16px;
    border-radius: 18px;
    background: #f7f9fd;
    border: 1px solid #edf1f7;
}

.account-app-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: min(calc(100% - 24px), 560px);
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(16, 34, 64, 0.14);
    z-index: 38;
    backdrop-filter: blur(14px);
}

.account-app-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 52px;
    border-radius: 16px;
    color: #707785;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
}

.account-app-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.account-app-bottom-nav a.is-active {
    background: #edf4ff;
    color: #2d73ea;
}

.account-app-page-shell {
    display: grid;
    gap: 18px;
    padding: 18px 16px 126px;
}

.account-app-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    color: #ffffff;
    padding-right: 94px;
}

.account-app-page-title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1;
}

.account-app-page-copy {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34rem;
}

.account-app-surface {
    display: grid;
    gap: 18px;
}

.deposit-flow-card {
    padding: 24px 18px;
}

.banking-invest-card {
    display: grid;
    gap: 18px;
}

.investment-plan-note {
    margin: -4px 0 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(45, 115, 234, 0.1), rgba(27, 54, 106, 0.06));
    color: #41506a;
    font-weight: 600;
}

.investment-plan-grid {
    display: grid;
    gap: 18px;
}

.investment-plan-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e3e7ef;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 18px 34px rgba(16, 34, 64, 0.07);
}

.investment-plan-card-head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
}

.investment-plan-badge {
    width: 92px;
    min-width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    background: linear-gradient(180deg, #4d8eff 0%, #2d73ea 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 18px 28px rgba(45, 115, 234, 0.24);
}

.investment-plan-badge strong {
    font-size: 1.75rem;
    line-height: 1;
}

.investment-plan-badge span {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.94;
}

.investment-plan-badge em {
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.investment-plan-copy {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    align-content: center;
}

.investment-plan-label {
    color: #7a8190;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.investment-plan-copy h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.investment-plan-amount {
    font-size: clamp(1.45rem, 4.6vw, 2.3rem);
    color: #1f2328;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.investment-plan-metrics {
    display: grid;
    gap: 12px;
    padding-top: 2px;
}

.investment-plan-metric {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.investment-plan-metric:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.investment-plan-metric span {
    color: #7a8190;
}

.investment-plan-metric strong {
    color: #1f2328;
    text-align: right;
}

.investment-plan-total {
    color: #0fa67a;
}

.investment-plan-submit {
    min-height: 60px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, #1f3764 0%, #152b50 100%);
    color: #ffffff;
    font-size: clamp(0.94rem, 2.8vw, 1.05rem);
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(21, 43, 80, 0.24);
    cursor: pointer;
    padding: 0 16px;
    text-align: center;
}

.investment-plan-submit:hover {
    filter: brightness(1.03);
}

.deposit-flow-form {
    display: grid;
    gap: 20px;
}

.deposit-flow-section {
    display: grid;
    gap: 14px;
}

.deposit-flow-section h3 {
    margin: 0;
    font-size: 1.28rem;
}

.deposit-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.deposit-amount-chip,
.deposit-channel-card {
    border: 1px solid #e3e7ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 34, 64, 0.05);
}

.deposit-amount-chip {
    min-height: 64px;
    padding: 0 14px;
    color: #30384a;
    font-size: 1.05rem;
    font-weight: 700;
}

.deposit-amount-chip.is-active,
.deposit-channel-card.is-active {
    border-color: #7baefb;
    background: #edf4ff;
    box-shadow: 0 0 0 3px rgba(45, 125, 246, 0.14);
}

.deposit-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8a90a0;
    font-weight: 600;
}

.deposit-divider::before,
.deposit-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: #e3e7ef;
}

.deposit-divider span {
    white-space: nowrap;
}

.deposit-amount-input-shell {
    min-height: 70px;
    border-radius: 22px;
    background: #ffffff;
}

.deposit-amount-input-shell input {
    min-height: 66px;
}

.deposit-range-note {
    margin: 0;
    color: #7a8190;
}

.deposit-channel-list {
    display: grid;
    gap: 14px;
}

.deposit-channel-item {
    display: grid;
    gap: 10px;
}

.deposit-channel-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    text-align: left;
}

.deposit-channel-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d0d7de;
    background: #ffffff;
    flex: 0 0 auto;
}

.deposit-channel-card.is-active .deposit-channel-radio {
    border-color: #2d73ea;
    box-shadow: inset 0 0 0 6px #2d73ea;
}

.deposit-channel-copy {
    display: grid;
    gap: 4px;
}

.deposit-channel-copy strong {
    color: #1f2328;
}

.deposit-channel-copy span,
.deposit-channel-copy em {
    color: #7a8190;
    font-style: normal;
}

.deposit-channel-details {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e3e7ef;
    border-radius: 20px;
    background: #fbfcff;
}

.deposit-channel-details[hidden] {
    display: none;
}

.deposit-channel-item.is-active .deposit-channel-details {
    border-color: #b8d1fb;
    background: #f5f9ff;
}

.deposit-channel-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.deposit-channel-detail-row span {
    color: #7a8190;
}

.deposit-channel-detail-row strong {
    color: #1f2328;
    text-align: right;
}

.deposit-channel-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.deposit-copy-button {
    min-height: 48px;
    border: 1px solid #d9e3f3;
    border-radius: 16px;
    background: #ffffff;
    color: #2d73ea;
    font-weight: 700;
}

.withdraw-app-surface {
    position: relative;
}

.withdraw-balance-card,
.withdraw-info-card,
.withdraw-form-card {
    padding: 24px 18px;
}

.withdraw-balance-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.withdraw-balance-label {
    color: #7a8190;
    font-size: 0.96rem;
    font-weight: 600;
}

.withdraw-visibility-toggle {
    border: 0;
    background: transparent;
    color: #2d73ea;
    cursor: pointer;
    font-weight: 700;
}

.withdraw-balance-amount {
    margin: 0;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    color: #1f2328;
}

.withdraw-frozen-balance {
    margin: 16px 0 0;
    color: #7a8190;
    font-size: 1rem;
}

.withdraw-info-card {
    display: grid;
    gap: 12px;
}

.withdraw-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f7;
}

.withdraw-info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.withdraw-info-row span {
    color: #7a8190;
}

.withdraw-info-row strong {
    color: #1f2328;
}

.withdraw-form {
    display: grid;
    gap: 18px;
}

.withdraw-amount-shell {
    min-height: 62px;
}

.withdraw-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 35, 0.22);
    z-index: 39;
}

.withdraw-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 16px 18px 26px;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -18px 40px rgba(16, 34, 64, 0.14);
    text-align: center;
}

.withdraw-sheet.is-hidden,
.withdraw-sheet-backdrop.is-hidden {
    display: none;
}

.withdraw-sheet-handle {
    width: 54px;
    height: 6px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #e4e7ed;
}

.withdraw-sheet-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff7dc;
    color: #d49b00;
    font-size: 1.5rem;
    font-weight: 800;
}

.withdraw-sheet h2 {
    margin: 0 0 10px;
    font-size: 1.9rem;
}

.withdraw-sheet p {
    margin: 0 auto 22px;
    max-width: 24rem;
    color: #6d7483;
    font-size: 1.02rem;
}

.withdraw-sheet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.withdraw-sheet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 18px;
    font-weight: 700;
}

.withdraw-sheet-button.is-muted {
    border: 1px solid #e2e7f1;
    background: #ffffff;
    color: #2d73ea;
}

.withdraw-sheet-button.is-primary {
    background: linear-gradient(180deg, #4c8eff 0%, #2f73ea 100%);
    color: #ffffff;
}

.account-app-body .account-app-surface .card,
.account-app-body .account-app-surface .table-wrap {
    border-radius: 24px;
    border-color: rgba(224, 229, 238, 0.8);
    box-shadow: 0 18px 34px rgba(16, 34, 64, 0.08);
}

.admin-app-body .portal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-app-body .portal-main {
    gap: 22px;
}

.admin-app-body .portal-sidebar {
    top: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #17385f 0%, #244a77 100%);
}

.admin-app-body .portal-sidebar-header-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
    padding-top: 56px;
    min-width: 88px;
}

.theme-toggle-sidebar {
    min-width: 72px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
}

.admin-app-body .sidebar-toggle {
    min-width: 72px;
}

.admin-app-body .page-hero,
.admin-app-body .page-section-header,
.admin-app-body .card,
.admin-app-body .table-wrap {
    border-radius: 24px;
}

.admin-app-body .card,
.admin-app-body .table-wrap {
    box-shadow: 0 18px 34px rgba(16, 34, 64, 0.08);
}

body.theme-dark .account-app-topband,
body.theme-dark .account-app-card,
body.theme-dark .account-app-tile,
body.theme-dark .account-app-bottom-nav,
body.theme-dark .account-app-body .account-app-surface .card,
body.theme-dark .account-app-body .account-app-surface .table-wrap,
body.theme-dark .stat-card,
body.theme-dark .music-card,
body.theme-dark .music-meta-item,
body.theme-dark .page-hero,
body.theme-dark .page-section-header,
body.theme-dark .admin-app-body .card,
body.theme-dark .admin-app-body .table-wrap {
    background: #182231;
    color: #f0f4fa;
    border-color: rgba(240, 244, 250, 0.08);
}

body.theme-dark .account-app-feature-item,
body.theme-dark .account-app-tile-icon,
body.theme-dark .account-app-action,
body.theme-dark .account-app-action.is-light,
body.theme-dark th,
body.theme-dark .password-toggle:hover {
    background: #223149;
    border-color: rgba(240, 244, 250, 0.08);
}

body.theme-dark .account-app-list-item,
body.theme-dark td,
body.theme-dark th,
body.theme-dark .stat-card,
body.theme-dark .music-meta-item,
body.theme-dark .music-card,
body.theme-dark .page-section-header {
    border-color: rgba(240, 244, 250, 0.08);
}

body.theme-dark .muted,
body.theme-dark .account-app-list-item span,
body.theme-dark .account-app-feature-item span,
body.theme-dark .account-app-feature-item em,
body.theme-dark .account-app-page-copy,
body.theme-dark .subbrand,
body.theme-dark .stat-label,
body.theme-dark .sidebar-meta-label,
body.theme-dark .field label,
body.theme-dark .music-meta-label,
body.theme-dark .table-wrap th,
body.theme-dark .card .muted,
body.theme-dark .table-wrap .muted,
body.theme-dark .card p,
body.theme-dark .card li,
body.theme-dark .card span {
    color: #98a7bb;
}

body.theme-dark .account-app-bottom-nav a,
body.theme-dark .account-app-tile,
body.theme-dark .account-app-action,
body.theme-dark .account-app-action.is-light,
body.theme-dark .theme-toggle,
body.theme-dark .password-toggle,
body.theme-dark .card h2,
body.theme-dark .card h3,
body.theme-dark .section-heading,
body.theme-dark .hero-user-name,
body.theme-dark .table-wrap td,
body.theme-dark .section-title-row,
body.theme-dark .page-section-header,
body.theme-dark .card strong,
body.theme-dark .card a,
body.theme-dark .table-wrap a,
body.theme-dark .stat-card strong,
body.theme-dark .music-card h3,
body.theme-dark .music-meta-item strong,
body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .field textarea,
body.theme-dark .auth-input-shell {
    color: #f0f4fa;
}

body.theme-dark .account-app-action.is-accent {
    color: #ffe67c;
}

body.theme-dark .card .eyebrow,
body.theme-dark .page-section-header .eyebrow,
body.theme-dark .section-title-row .eyebrow {
    color: #78a6ff;
}

body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .field textarea,
body.theme-dark .password-toggle,
body.theme-dark .auth-input-shell,
body.theme-dark .account-app-tile-icon,
body.theme-dark .code-box,
body.theme-dark .btn.secondary {
    background: #182231;
    border-color: rgba(240, 244, 250, 0.08);
}

body.theme-dark .btn.secondary {
    color: #f0f4fa;
}

body.theme-dark .table-wrap {
    background: #182231;
}

body.theme-dark .page-hero::after,
body.theme-dark .page-hero-admin::after,
body.theme-dark .page-hero-user::after {
    opacity: 0.35;
}

body.theme-dark .badge {
    background: #223149;
    color: #d6e2f3;
}

body.theme-dark .account-app-bottom-nav a.is-active {
    background: #223149;
    color: #78a6ff;
}

body.theme-dark .music-card.is-playing,
body.theme-dark .account-app-tile:hover,
body.theme-dark .account-app-card:hover,
body.theme-dark .account-app-feature-item:hover {
    background: #1d2b3d;
}

body.theme-dark .withdraw-balance-amount,
body.theme-dark .withdraw-info-row strong,
body.theme-dark .withdraw-sheet h2,
body.theme-dark .deposit-flow-section h3,
body.theme-dark .deposit-channel-copy strong {
    color: #f0f4fa;
}

body.theme-dark .withdraw-info-row,
body.theme-dark .withdraw-sheet-handle {
    border-color: rgba(240, 244, 250, 0.08);
    background: #223149;
}

body.theme-dark .withdraw-sheet,
body.theme-dark .withdraw-sheet-backdrop,
body.theme-dark .withdraw-balance-card,
body.theme-dark .withdraw-info-card,
body.theme-dark .withdraw-form-card {
    background: #182231;
}

body.theme-dark .withdraw-sheet p,
body.theme-dark .withdraw-balance-label,
body.theme-dark .withdraw-frozen-balance,
body.theme-dark .withdraw-info-row span,
body.theme-dark .deposit-range-note,
body.theme-dark .deposit-channel-copy span,
body.theme-dark .deposit-channel-copy em,
body.theme-dark .deposit-divider {
    color: #98a7bb;
}

body.theme-dark .deposit-amount-chip,
body.theme-dark .deposit-channel-card,
body.theme-dark .deposit-amount-input-shell,
body.theme-dark .deposit-channel-radio,
body.theme-dark .deposit-channel-details,
body.theme-dark .deposit-copy-button,
body.theme-dark .investment-plan-card,
body.theme-dark .investment-plan-note {
    background: #182231;
    border-color: rgba(240, 244, 250, 0.08);
    color: #f0f4fa;
}

body.theme-dark .deposit-amount-chip.is-active,
body.theme-dark .deposit-channel-card.is-active {
    background: #223149;
    border-color: #78a6ff;
    box-shadow: 0 0 0 3px rgba(120, 166, 255, 0.14);
}

body.theme-dark .deposit-divider::before,
body.theme-dark .deposit-divider::after {
    background: rgba(240, 244, 250, 0.08);
}

body.theme-dark .deposit-channel-detail-row span {
    color: #98a7bb;
}

body.theme-dark .deposit-channel-detail-row strong {
    color: #f0f4fa;
}

body.theme-dark .investment-plan-label,
body.theme-dark .investment-plan-metric span,
body.theme-dark .investment-plan-note {
    color: #98a7bb;
}

body.theme-dark .investment-plan-copy h3,
body.theme-dark .investment-plan-amount,
body.theme-dark .investment-plan-metric strong {
    color: #f0f4fa;
}

body.theme-dark .investment-plan-metric {
    border-bottom-color: rgba(240, 244, 250, 0.08);
}

body.theme-dark .investment-plan-total {
    color: #46d8ab;
}

body.theme-dark .investment-plan-submit {
    background: linear-gradient(180deg, #2d73ea 0%, #2258b5 100%);
    box-shadow: 0 14px 26px rgba(34, 88, 181, 0.28);
}

body.theme-dark .withdraw-sheet-button.is-muted {
    border-color: rgba(240, 244, 250, 0.08);
    background: #223149;
    color: #f0f4fa;
}

.btn {
    border: 1px solid rgba(31, 35, 40, 0.15);
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    background: linear-gradient(180deg, var(--accent-strong) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn.secondary {
    background: linear-gradient(180deg, #f6f8fa 0%, #eaeef2 100%);
    color: var(--ink);
}

.btn.warning {
    background: linear-gradient(180deg, #bf8700 0%, var(--warning) 100%);
}

.btn.success {
    background: linear-gradient(180deg, #2da44e 0%, var(--success) 100%);
}

.btn.danger {
    background: linear-gradient(180deg, #da3633 0%, var(--danger) 100%);
}

.portal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.portal-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: #0d1117;
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 18px;
    color: #f0f6fc;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(13, 17, 23, 0.2);
}

.portal-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-overlay {
    display: none;
}

.sidebar-fab {
    display: none;
}

.portal-sidebar-admin {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

.portal-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.portal-sidebar-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 246, 252, 0.16);
    background: rgba(240, 246, 252, 0.06);
    color: #f0f6fc;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.sidebar-link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #c9d1d9;
    border: 1px solid transparent;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.sidebar-group {
    display: grid;
    gap: 8px;
}

.sidebar-group-toggle {
    list-style: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 36px;
}

.sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

.sidebar-group-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 120ms ease;
}

.sidebar-group[open] .sidebar-group-toggle::after {
    transform: translateY(-35%) rotate(225deg);
}

.sidebar-subnav {
    display: grid;
    gap: 8px;
    padding-left: 12px;
}

.sidebar-sublink {
    padding-left: 18px;
    color: #9fb0c3;
}

.sidebar-link:hover {
    background: rgba(240, 246, 252, 0.06);
    color: #f0f6fc;
}

.sidebar-link.is-active {
    background: rgba(31, 111, 235, 0.16);
    color: #f0f6fc;
    border-color: rgba(31, 111, 235, 0.35);
}

.sidebar-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(240, 246, 252, 0.1);
    overflow-wrap: anywhere;
}

.portal-main {
    min-width: 0;
    display: grid;
    gap: 32px;
}

body.sidebar-collapsed .portal-shell {
    grid-template-columns: 88px minmax(0, 1fr);
}

body.sidebar-collapsed .portal-sidebar {
    padding: 18px 12px;
}

body.sidebar-collapsed .portal-sidebar-header .eyebrow,
body.sidebar-collapsed .portal-sidebar-header h2,
body.sidebar-collapsed .sidebar-meta,
body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-group-toggle {
    font-size: 0;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-group-toggle {
    min-height: 44px;
    position: relative;
    background: rgba(240, 246, 252, 0.05);
}

body.sidebar-collapsed .sidebar-link::after,
body.sidebar-collapsed .sidebar-group-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
}

body.sidebar-collapsed .sidebar-subnav {
    display: none;
}

.table-card {
    gap: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

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

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #f6f8fa;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    background: #ddf4ff;
}

.badge.success {
    background: rgba(31, 138, 91, 0.14);
    color: var(--success);
}

.badge.warning {
    background: rgba(185, 121, 18, 0.14);
    color: var(--warning);
}

.badge.danger {
    background: rgba(173, 45, 45, 0.14);
    color: var(--danger);
}

.music-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.music-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.music-meta-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.music-meta-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.music-card.is-playing {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(9, 105, 218, 0.15), 0 12px 30px rgba(9, 105, 218, 0.08);
    transform: translateY(-2px);
}

.split-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.code-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

.app-alert {
    position: fixed;
    right: 18px;
    bottom: 18px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #fff;
    background: #1f2328;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.app-alert.success {
    background: var(--success);
}

.app-alert.error {
    background: var(--danger);
}

ul {
    padding-left: 20px;
}

li + li {
    margin-top: 8px;
}

body.theme-dark .card,
body.theme-dark .table-wrap,
body.theme-dark .stat-card,
body.theme-dark .music-card,
body.theme-dark .music-meta-item,
body.theme-dark .account-app-card,
body.theme-dark .account-app-tile,
body.theme-dark .account-app-feature-item,
body.theme-dark .account-app-bottom-nav,
body.theme-dark .account-app-body .account-app-surface .card,
body.theme-dark .account-app-body .account-app-surface .table-wrap,
body.theme-dark .admin-app-body .card,
body.theme-dark .admin-app-body .table-wrap,
body.theme-dark .page-hero,
body.theme-dark .page-section-header,
body.theme-dark .withdraw-balance-card,
body.theme-dark .withdraw-info-card,
body.theme-dark .withdraw-form-card,
body.theme-dark .withdraw-sheet,
body.theme-dark .code-box,
body.theme-dark .account-app-action.is-light,
body.theme-dark .btn.secondary {
    background: #182231 !important;
    border-color: rgba(240, 244, 250, 0.08) !important;
    color: #f0f4fa;
}

body.theme-dark th,
body.theme-dark .account-app-tile-icon,
body.theme-dark .account-app-bottom-nav a.is-active,
body.theme-dark .account-app-feature-item.is-active,
body.theme-dark .withdraw-sheet-button.is-muted,
body.theme-dark .withdraw-sheet-handle,
body.theme-dark .password-toggle,
body.theme-dark .password-toggle:hover {
    background: #223149 !important;
    border-color: rgba(240, 244, 250, 0.08) !important;
}

body.theme-dark .card h2,
body.theme-dark .card h3,
body.theme-dark .card strong,
body.theme-dark .card label,
body.theme-dark .card a,
body.theme-dark .table-wrap td,
body.theme-dark .table-wrap a,
body.theme-dark .stat-card strong,
body.theme-dark .music-card h3,
body.theme-dark .music-meta-item strong,
body.theme-dark .section-heading,
body.theme-dark .page-section-header,
body.theme-dark .section-title-row {
    color: #f0f4fa !important;
}

body.theme-dark .card p,
body.theme-dark .card span,
body.theme-dark .card .muted,
body.theme-dark .table-wrap th,
body.theme-dark .table-wrap .muted,
body.theme-dark .stat-label,
body.theme-dark .music-meta-label,
body.theme-dark .field label {
    color: #9aa9bc !important;
}

@media (min-width: 1024px) {
    body.account-app-body .page-content {
        padding: 26px 30px 42px;
    }

    body.admin-app-body .page-content {
        max-width: 1540px;
        margin: 0 auto;
        padding: 34px 32px 42px;
    }

    .account-app-shell {
        max-width: 1400px;
        margin: 0 auto;
        padding: 28px 28px 46px;
        border-radius: 40px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 28px 70px rgba(10, 24, 48, 0.12);
    }

    .account-app-topband,
    .account-app-hero,
    .account-app-content {
        width: 100%;
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }

    .account-app-topband {
        padding: 12px 22px;
        border-radius: 18px 18px 0 0;
    }

    .account-app-hero {
        padding: 30px 28px 132px;
        border-radius: 0 0 34px 34px;
    }

    .account-app-content {
        margin-top: -94px;
        padding: 0 20px 42px;
    }

    .account-app-page-shell {
        max-width: 1320px;
        margin: 0 auto;
        padding: 32px 28px 46px;
        border-radius: 36px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 28px 70px rgba(10, 24, 48, 0.12);
    }

    .portal-shell {
        gap: 28px;
        padding: 18px;
        border-radius: 32px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 60px rgba(10, 24, 48, 0.12);
    }

    .portal-main {
        gap: 26px;
    }

    body.theme-dark .account-app-shell,
    body.theme-dark .account-app-page-shell,
    body.theme-dark .portal-shell {
        background: rgba(12, 19, 31, 0.44);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    }
}

@media (max-width: 960px) {
    body.auth-body .page-content {
        padding: 0;
    }

    body.account-app-body .page-content {
        padding: 0;
    }

    body.admin-app-body .page-content {
        padding: 18px 14px 28px;
    }

    .page-content {
        padding: 22px 16px 40px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-group {
        width: 100%;
    }

    .sidebar-launcher {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .hero,
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .music-meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portal-main,
    .content-stack {
        gap: 28px;
    }

    .page-hero,
    .card {
        padding: 22px;
    }

    .table-card {
        padding-bottom: 26px;
    }

    .stat-card,
    .music-meta-item {
        padding: 18px;
    }

    .hero-user-name {
        margin-bottom: 12px;
        font-size: 1.05rem;
    }

    .section-title-row,
    .page-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-shell {
        padding: 24px 14px 32px;
    }

    .auth-stage {
        gap: 20px;
    }

    .auth-brand-mark {
        width: 68px;
        height: 68px;
        border-radius: 22px;
    }

    .auth-panel {
        border-radius: 28px;
        padding: 26px 18px 24px;
    }

    .auth-panel-header h2 {
        font-size: 1.85rem;
    }

    .auth-input-shell {
        min-height: 58px;
        padding: 0 14px;
    }

    .auth-input-shell input {
        min-height: 56px;
    }

    .account-app-hero {
        padding: 16px 16px 106px;
    }

    .account-app-hero-top,
    .account-app-card-header,
    .account-app-list-item,
    .account-app-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-app-page-shell .theme-toggle,
    .account-app-theme-toggle,
    .admin-app-body .theme-toggle-sidebar {
        top: 14px;
        right: 14px;
    }

    .admin-app-body .portal-sidebar-header-actions {
        padding-top: 54px;
    }

    .account-app-stat-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-app-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-app-action {
        min-height: 52px;
        padding: 0 10px;
        text-align: center;
    }

    .account-app-content {
        margin-top: -74px;
        padding: 0 14px 28px;
    }

    .account-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .deposit-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .withdraw-sheet-actions,
    .withdraw-info-row {
        grid-template-columns: 1fr;
    }

    .investment-plan-card-head,
    .investment-plan-metric {
        align-items: flex-start;
    }

    .investment-plan-metric {
        flex-direction: column;
    }

    .withdraw-info-row {
        display: grid;
    }

    .account-app-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .admin-app-body .portal-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .account-app-balance {
        font-size: 2.9rem;
    }

    .account-app-actions {
        grid-template-columns: 1fr;
    }

    .account-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-app-bottom-nav a {
        min-height: 48px;
        font-size: 0.74rem;
    }

    .investment-plan-card-head {
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: flex-start;
    }

    .investment-plan-badge {
        width: 84px;
        min-width: 84px;
        height: 84px;
    }

    .investment-plan-badge strong {
        font-size: 1.5rem;
    }

    .investment-plan-copy h3 {
        font-size: 1.12rem;
        letter-spacing: 0.04em;
    }

    .investment-plan-amount {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .investment-plan-copy {
        align-content: start;
    }

    .portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        max-height: none;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 18px 18px 0;
        z-index: 40;
        transform: translateX(-110%);
        transition: transform 180ms ease;
        overscroll-behavior: contain;
    }

    .sidebar-fab {
        display: inline-flex;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 46;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 14px;

@media (max-width: 390px) {
    .investment-plan-card-head {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .investment-plan-badge {
        margin: 0 auto;
    }

    .investment-plan-copy {
        text-align: center;
        justify-items: center;
    }

    .investment-plan-amount {
        font-size: 1.12rem;
    }
}
        border: 1px solid rgba(240, 246, 252, 0.14);
        border-radius: 999px;
        background: rgba(23, 56, 95, 0.96);
        color: #f0f6fc;
        box-shadow: 0 16px 28px rgba(10, 24, 48, 0.24);
    }

    body.sidebar-mobile-open .sidebar-fab {
        opacity: 0;
        pointer-events: none;
    }

    body.theme-dark .sidebar-fab {
        background: rgba(15, 24, 38, 0.96);
        border-color: rgba(240, 244, 250, 0.12);
        color: #f0f4fa;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(13, 17, 23, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 35;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-mobile-open .portal-sidebar {
        transform: translateX(0);
    }

    body.sidebar-mobile-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}
