.acc-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.acc-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}

.acc-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.acc-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-soft);
}

.acc-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.acc-main {
    padding: 48px 0;
    flex: 1;
}

@media (max-width: 768px) {
    .acc-main { padding: 32px 0; }
}

.acc-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 0;
    overflow-x: auto;
}

.acc-tab {
    padding: 12px 18px;
    color: var(--text-mute);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.acc-tab:hover {
    color: var(--text);
}

.acc-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--green);
    font-weight: 600;
}

.acc-balance {
    background: linear-gradient(165deg, #1d1d1b 0%, #2a2723 70%, #1a1815 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .acc-balance { padding: 28px 24px; border-radius: 20px; }
}

.acc-balance::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 130%;
    background: radial-gradient(circle, rgba(76, 177, 64, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.acc-balance-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
}

.acc-balance-value {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    position: relative;
}

.acc-balance-value small {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 8px;
    letter-spacing: 0;
}

.acc-balance-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin-top: 8px;
    position: relative;
}

.acc-balance-nocard-title {
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    position: relative;
}

.acc-balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    position: relative;
}

.acc-balance-actions .btn {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.acc-balance-actions .btn-accent {
    background: var(--green);
    color: #ffffff;
}

.acc-balance-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.acc-balance-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.acc-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
    .acc-card { padding: 22px; border-radius: 18px; }
}

.acc-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.015em;
}

.acc-card-card {
    background: linear-gradient(135deg, #1c2740 0%, #161e2e 60%, #111726 100%);
    color: #ffffff;
    border-radius: 16px;
    aspect-ratio: 1.586 / 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(20, 25, 40, 0.3);
}

.acc-card-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 10% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.acc-card-brand {
    position: relative;
    line-height: 1;
}

.acc-card-logo {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.acc-card-logo i {
    font-style: normal;
    color: var(--green);
}

.acc-card-site {
    display: block;
    margin-top: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
}

.acc-card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    letter-spacing: 0.1em;
    position: relative;
}

.acc-card-status {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 14px;
    text-align: center;
}

.acc-empty {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-soft);
    border-radius: 18px;
    border: 1px dashed var(--border);
}

.acc-empty h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.acc-empty p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 18px;
}

.acc-tx {
    width: 100%;
    border-collapse: collapse;
}

.acc-tx th {
    text-align: left;
    color: var(--text-mute);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
}

.acc-tx td {
    padding: 14px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
}

.acc-tx tr:last-child td {
    border-bottom: 0;
}

.acc-tx-amount {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.acc-tx-amount.is-positive {
    color: var(--green-dark);
}

.acc-tx-amount.is-negative {
    color: #c43a3a;
}

.acc-tx-type {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: 12px;
    border-radius: 999px;
    font-weight: 500;
}

.acc-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.acc-form-row label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
}

.acc-input {
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 177, 64, 0.15);
}

.acc-input:read-only {
    background: var(--bg-soft);
    color: var(--text-mute);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 440px;
    width: 100%;
}

@media (max-width: 480px) {
    .login-card { padding: 28px 24px; border-radius: 22px; }
}

.login-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 28px;
}

.login-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 28px;
}

.login-card .btn {
    width: 100%;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 18px;
    cursor: pointer;
}

.login-back:hover {
    color: var(--text);
}

.login-error {
    background: #fde9e9;
    color: #a02525;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-success {
    background: var(--green-soft);
    color: var(--green-dark);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-soft);
    margin: 4px 0 20px;
    cursor: pointer;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 14, 0.55);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-body {
    background: var(--surface);
    border-radius: 22px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    transform: translateY(10px);
    transition: transform 0.18s ease;
}

.modal-backdrop.is-open .modal-body {
    transform: translateY(0);
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-body p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 22px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--accent);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.is-err {
    background: #c43a3a;
}
