/* ===== Tài khoản (Account) page ===== */

.rn-account-page {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 2rem;
    background: var(--gray-50);
    min-height: 60vh;
}

/* ===== Header banner ===== */
.rn-account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-blue);
    color: #fff;
    padding: 1.5rem 1.25rem;
}

.rn-account-header__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    overflow: hidden;
}

.rn-account-header__info { min-width: 0; }

.rn-account-header__name {
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rn-account-header__name.is-clickable {
    cursor: pointer;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
}

.rn-account-header__name.is-clickable:hover { text-decoration: underline; }

.rn-account-header__subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

/* ===== Sections ===== */
.rn-account-section { padding: 1rem 1rem 0; }

.rn-account-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.6rem;
}

/* ===== Row card ===== */
.rn-account-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.06));
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rn-account-row--static { cursor: default; }

.rn-account-row__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.rn-account-row__icon--blue { background: var(--primary-blue-50, #e8f0fe); color: var(--primary-blue); }
.rn-account-row__icon--warning { background: #fdf1e6; color: var(--warning, #f59e0b); }
.rn-account-row__icon--danger { background: #fdecea; color: var(--danger, #ef4444); }

.rn-account-row__label {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-900);
}

.rn-account-row__label--danger { color: var(--danger, #ef4444); }

.rn-account-row__chevron { color: var(--gray-400); font-size: 0.85rem; }

.rn-account-row__value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
}

.rn-account-row__value--link { color: var(--primary-blue); }

/* ===== Logout button ===== */
.rn-account-logout {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rn-account-logout:hover { background: var(--primary-blue-dark, #1d4ed8); }
.rn-account-logout:active { opacity: 0.85; }

/* ===== Desktop: split sections into columns to fill the width ===== */
@media (min-width: 992px) {
    .rn-account-page {
        max-width: 960px;
    }

    .rn-account-columns {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .rn-account-columns .rn-account-section {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        margin-bottom: 0.4rem;
    }

    .rn-account-section--logout {
        max-width: 460px;
        margin: 0 auto;
    }
}
