/* Account presentation only: data, tabs, CPF editor and wallet actions stay intact. */
.modal-shell[data-modal="account"] {
    align-items: center;
    padding-inline: 14px;
}

.modal-shell[data-modal="account"] .modal-card--account {
    width: min(100%, 420px);
    max-width: calc(100vw - 28px);
    padding: 56px 20px 20px;
    border-radius: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.modal-shell[data-modal="account"] .modal-close {
    --modal-close-size: 44px;
    --modal-close-inset: 12px;
    --modal-close-radius: 50%;
    --modal-close-transform: none;
    display: grid;
    place-items: center;
    padding: 0;
    background: #1b2421;
    touch-action: manipulation;
}

.modal-shell[data-modal="account"] .modal-close svg { width: 20px; height: 20px; }

.modal-shell[data-modal="account"] .home-panel-hero {
    min-width: 0;
    gap: 5px;
    padding: 0 6px 18px;
    margin: 0;
    border: 0;
    background: none;
}

.modal-shell[data-modal="account"] .home-panel-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    color: #d8eddf;
    background: #24382a;
    border: 1px solid rgba(125, 160, 135, 0.3);
}

.modal-shell[data-modal="account"] .home-panel-avatar svg { width: 25px; height: 25px; }

.modal-shell[data-modal="account"] .home-panel-hero strong {
    max-width: 100%;
    font-size: 25px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.modal-shell[data-modal="account"] .home-panel-hero span,
.modal-shell[data-modal="account"] .home-panel-hero small {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    color: #c6ccc8;
}

.modal-shell[data-modal="account"] .home-panel-hero small { font-size: 12px; color: #a6b0aa; }

.modal-shell[data-modal="account"] .home-tab-switcher {
    gap: 4px;
    padding: 4px;
    margin: 0 0 20px;
    background: #202522;
    border: 1px solid #353e38;
    border-radius: 18px;
}

.modal-shell[data-modal="account"] .home-tab-button {
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 13px;
    color: #c7ceca;
    background: transparent;
    font-size: 14px;
    line-height: 1.2;
    touch-action: manipulation;
}

.modal-shell[data-modal="account"] .home-tab-button.is-active {
    background: linear-gradient(180deg, #57dd4c, #35bf30);
    color: #f6fff5;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.modal-shell[data-modal="account"] .home-info-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.modal-shell[data-modal="account"] .home-info-card h4 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
}

.modal-shell[data-modal="account"] .home-info-list { gap: 10px; }

.modal-shell[data-modal="account"] :is(.home-info-item, .home-stat-card) {
    min-width: 0;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #353e38;
    border-radius: 18px;
    background: #202723;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.modal-shell[data-modal="account"] :is(.home-info-item, .home-stat-card) span {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: #adb8b1;
}

.modal-shell[data-modal="account"] :is(.home-info-item, .home-stat-card) strong {
    min-width: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #f3f5f3;
    overflow-wrap: anywhere;
}

.modal-shell[data-modal="account"] .home-stat-grid { gap: 10px; margin-bottom: 16px; }
.modal-shell[data-modal="account"] .home-stat-card strong { font-size: 22px; }

.modal-shell[data-modal="account"] .home-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.modal-shell[data-modal="account"] .home-inline-actions button {
    min-height: 48px;
    padding: 10px 8px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.2;
    touch-action: manipulation;
}

.modal-shell[data-modal="account"] .home-inline-actions .modal-primary {
    grid-column: 1 / -1;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.modal-shell[data-modal="account"] .home-inline-actions .modal-secondary {
    grid-column: 1 / -1;
    border: 1px solid #424c45;
    background: #252d28;
    color: #edf2ee;
}

.modal-shell[data-modal="account"] button:focus-visible {
    outline: 2px solid #a8cdb0;
    outline-offset: 3px;
}

@media (max-width: 360px) {
    .modal-shell[data-modal="account"] .modal-card--account { padding-inline: 16px; }
    .modal-shell[data-modal="account"] .home-info-card h4 { font-size: 17px; }
    .modal-shell[data-modal="account"] .home-stat-card { padding-inline: 10px; }
    .modal-shell[data-modal="account"] .home-stat-card strong { font-size: 19px; }
}
