/* app/static/css/account.css */

#wallet-notification,
#disconnect-paxor-account,
#remove-paxor-wallet,
#copy-generated-address,
#transaction-history-content,
#unlock-wallet-loading {
    display: none;
}

#connect-paxor-account {
    display: block;
}

.wallet-password-input {
    width: 100%;
    padding: 10px;
}

.wallet-import-link-row {
    margin-top: 10px;
}

/* =========================================================
   PURPOSE:
   Полные стили страницы Account.
   Страница содержит:
   1. Основной контейнер личного кабинета
   2. Голубой hero-заголовок
   3. Аватар под hero-блоком
   4. Вкладки Account
   5. Уведомления внутри страницы
   6. Модальные окна кошелька
   7. Светлую тему
   8. Мобильную адаптацию
   ========================================================= */


/* =========================================================
   SECTION 1. ACCOUNT PAGE CONTAINER
   Внешний контейнер страницы личного кабинета
   ========================================================= */

.account-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: calc(100vh - 70px);

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 60px;

    background: transparent;

    position: relative;
    z-index: 10;

    box-sizing: border-box;
}


/* =========================================================
   SECTION 2. ACCOUNT PAGE BOX
   Основная коробка личного кабинета
   ========================================================= */

.account-box {
    width: 100%;
    max-width: 1180px;
    min-height: 800px;

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    backdrop-filter: blur(10px);

    box-shadow: none;

    color: #ffffff;

    text-align: center;

    position: relative;
    z-index: 11;

    font-family: 'Inter', sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}

/* Декоративный псевдоэлемент отключён */
.account-box::before {
    display: none;
}


/* =========================================================
   SECTION 3. ACCOUNT HERO HEADER
   Голубая верхняя планка личного кабинета
   ========================================================= */

.account-hero {
    --account-cutout-size: 224px;
    --account-cutout-x: calc(100% - 86px);
    --account-cutout-y: 0;

    position: relative;
    overflow: hidden;
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;

    padding: 22px 26px 88px;
    margin-bottom: 22px;

    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.02)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.42), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.36), rgba(4, 22, 32, 0.86));

    border: 2px solid #037d9c;
    border-radius: 20px;

    box-shadow:
        0 0 18px rgba(3, 125, 156, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    box-sizing: border-box;
}

.account-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(3, 125, 156, 0.1) 52%, transparent);
    pointer-events: none;
}

.account-hero::after {
    content: none;
}

.account-hero-text {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 560px;

    text-align: left;
}

.account-hero h1 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 31px;
    font-weight: 600;
    line-height: 1.1;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.account-hero p {
    max-width: 440px;

    margin: 0;

    color: #e8fbff;

    font-size: 15px;
    line-height: 1.55;
}

/* =========================================================
   SECTION 4. ACCOUNT HERO BADGE
   Овальная плашка User Profile в голубой планке
   ========================================================= */

.account-hero-badge {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    min-width: 0;
    margin: 0;

    padding: 10px 18px;

    background: rgba(0, 0, 0, 0.28);

    border: 1px solid rgba(232, 251, 255, 0.55);
    border-radius: 999px;

    color: #e8fbff;

    white-space: nowrap;

    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    box-sizing: border-box;
}

.account-hero-badge i {
    color: #ffffff;

    font-size: 16px;

    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.account-hero-badge span {
    color: #ffffff;

    font-weight: 700;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   SECTION 4.1. ACCOUNT HERO WALLET STATUS
   Поле статуса кошелька внутри голубой планки
   ========================================================= */

.account-hero-wallet-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    position: absolute;
    right: 26px;
    bottom: 22px;
    z-index: 3;

    width: 440px;
    max-width: calc(100% - 52px);

    margin-top: 0;
    padding: 11px 12px;

    background: rgba(15, 18, 22, 0.98);

    border: 1px solid rgba(6, 171, 212, 0.34);
    border-radius: 11px;

    color: #ffffff;

    min-height: 43px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);

    box-sizing: border-box;
}

.account-hero-wallet-status-text {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;

    flex: 1 1 auto;

    font-size: 13px;
    line-height: 1.2;
}

.account-hero-wallet-status-text i {
    font-size: 15px;

    flex: 0 0 auto;
}

.account-hero-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 10px rgba(53, 208, 127, 0.74);
    flex: 0 0 auto;
}

/* Когда кошелёк НЕ подключен */
.account-hero-wallet-status.not-connected {
    background: rgba(15, 18, 22, 0.98);

    border-color: rgba(53, 208, 127, 0.42);

    box-shadow: 0 0 12px rgba(53, 208, 127, 0.12);
}

.account-hero-wallet-status.not-connected .account-hero-wallet-status-text i {
    color: #35d07f;
}

/* Когда кошелёк подключен */
.account-hero-wallet-status.connected {
    background: rgba(15, 18, 22, 0.98);

    border-color: rgba(6, 171, 212, 0.45);

    box-shadow: 0 0 12px rgba(6, 171, 212, 0.14);
}

.account-hero-wallet-status.connected .account-hero-wallet-status-text i {
    color: #00ccff;
}

.account-hero-wallet-status.connected .account-hero-status-dot {
    background: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.78);
}

#account-hero-wallet-status-label {
    font-weight: 600;

    white-space: nowrap;
}

#account-hero-wallet-address {
    color: #ffffff;

    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка Connect Wallet внутри голубой планки */
.account-hero-connect-wallet-btn {
    min-height: 31px;

    padding: 6px 8px;

    background: rgba(255, 195, 74, 0.16);

    border: 1px solid rgba(255, 195, 74, 0.45);
    border-radius: 9px;

    color: #ffd56a;

    font-size: 12px;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.account-hero-connect-wallet-btn:hover {
    transform: translateY(-1px);

    background: rgba(255, 195, 74, 0.24);

    box-shadow: 0 4px 12px rgba(255, 195, 74, 0.14);
}

.account-hero-connect-wallet-btn[hidden] {
    display: none;
}

.account-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.account-hero-visual::after {
    content: none;
}

.account-earth-image {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(248%, 2920px);
    height: 100%;
    max-height: 100%;
    object-fit: fill;
    transform: translate(-50%, -50%);
    opacity: 0.72;
    filter:
        invert(1)
        brightness(1.28)
        sepia(1)
        saturate(2.2)
        hue-rotate(142deg)
        drop-shadow(0 0 7px rgba(232, 251, 255, 0.34))
        drop-shadow(0 0 16px rgba(3, 125, 156, 0.28));
    mix-blend-mode: screen;
}

.account-hero-avatar-panel {
    position: absolute;
    z-index: 2;
    right: 6px;
    top: 50%;
    width: min(21.5vw, 242px);
    height: min(21.5vw, 242px);
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.account-avatar-cutout {
    display: none;
}

.account-avatar-cutout::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 48%),
        rgba(0, 0, 0, 0.01);
    outline: 1px solid rgba(238, 253, 255, 0.24);
    -webkit-clip-path: polygon(50% 0, 94% 27%, 50% 54%, 6% 27%, 50% 0, 50% 54%, 92% 66%, 82% 98%, 57% 82%, 50% 54%, 43% 82%, 18% 98%, 8% 66%, 50% 54%);
    clip-path: polygon(50% 0, 94% 27%, 50% 54%, 6% 27%, 50% 0, 50% 54%, 92% 66%, 82% 98%, 57% 82%, 50% 54%, 43% 82%, 18% 98%, 8% 66%, 50% 54%);
}

.account-avatar-logo-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: transparent;
    filter: none;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.account-avatar-logo-mask::before {
    content: none;
    position: absolute;
    left: 50%;
    top: 66px;
    width: var(--account-cutout-size);
    height: var(--account-cutout-size);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(238, 253, 255, 0.26);
    opacity: 0.72;
    pointer-events: none;
    -webkit-clip-path: polygon(50% 0, 94% 27%, 50% 54%, 6% 27%, 50% 0, 50% 54%, 92% 66%, 82% 98%, 57% 82%, 50% 54%, 43% 82%, 18% 98%, 8% 66%, 50% 54%);
    clip-path: polygon(50% 0, 94% 27%, 50% 54%, 6% 27%, 50% 0, 50% 54%, 92% 66%, 82% 98%, 57% 82%, 50% 54%, 43% 82%, 18% 98%, 8% 66%, 50% 54%);
}

.account-avatar-logo-mask:hover {
    transform: none;
    filter: none;
}

.user-avatar,
.avatar {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border: 2px solid #037d9c;
    border-radius: 50%;
    box-shadow: none;
    transition: transform 0.28s ease;
}

.account-avatar-name-badge {
    position: absolute;
    right: 66px;
    bottom: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    min-height: 25px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(232, 251, 255, 0.34);
    border-radius: 9px;
    background: rgba(15, 18, 22, 0.86);
    color: #ffffff;
    box-shadow:
        0 0 14px rgba(3, 125, 156, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.account-avatar-name-badge span {
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.account-avatar-logo-mask:hover .user-avatar,
.account-avatar-logo-mask:hover .avatar {
    transform: scale(1.035);
}

.account-hero,
body.light-theme .account-hero,
.light-theme .account-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.02)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.42), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.36), rgba(4, 22, 32, 0.86));
    box-shadow:
        0 0 18px rgba(3, 125, 156, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.account-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(3, 125, 156, 0.1) 52%, transparent);
}

.account-hero,
body.light-theme .account-hero,
.light-theme .account-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.09) 45%, rgba(0, 0, 0, 0.01)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.34), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.28), rgba(4, 22, 32, 0.72));
}

.account-hero::before,
body.light-theme .account-hero::before,
.light-theme .account-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(3, 125, 156, 0.08) 52%, transparent);
}

/* =========================================================
   SECTION 6. TABS NAVIGATION
   Верхние вкладки личного кабинета
   ========================================================= */

.tabs {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-bottom: 6px;
}

.tab-button {
    min-width: auto;
    height: 40px;

    padding: 10px 20px 10px 48px;

    background: rgba(50, 50, 50, 0.8);

    border: 1px solid rgba(150, 150, 150, 0.3);
    border-radius: 4px;

    color: #ffffff;

    cursor: pointer;

    font-size: 16px;
    font-family: 'Inter', sans-serif;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-align: left;

    position: relative;
    z-index: 100;

    pointer-events: auto;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.tab-button.active {
    background: #037d9c;

    border: 2px solid #037d9c;

    color: #ffffff;
}

.tab-button:hover {
    background: rgba(80, 80, 80, 0.8);

    border-color: rgba(204, 204, 204, 0.3);
}

.tab-button.active:hover {
    background: #037d9c;

    border-color: #037d9c;
}


/* =========================================================
   SECTION 7. TAB BUTTON ICON CIRCLES
   Круглая подложка и иконки внутри вкладок
   ========================================================= */

.tab-button::before {
    content: '';

    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    background: rgba(30, 30, 30, 0.9);

    border-radius: 50%;

    transition: background 0.3s ease;

    z-index: 1;
}

.tab-button.active::before {
    background: rgba(4, 156, 183, 0.8);
}

.tab-button:hover::before {
    background: rgba(70, 70, 70, 0.9);
}

.tab-button.active:hover::before {
    background: rgba(4, 136, 163, 0.8);
}

.tab-button i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;

    color: #ffffff;

    font-size: 1em;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: color 0.3s ease;

    z-index: 2;
}

.tab-button:hover i {
    color: #1e90ff;
}

.tab-button.active:hover i {
    color: #ffffff;
}


/* =========================================================
   SECTION 8. TAB CONTENT
   Содержимое вкладок
   ========================================================= */

.tab-content {
    display: none;

    width: 100%;
    max-width: 1180px;

    padding: 0;

    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

/* Одинаковая внешняя ширина для всех внутренних блоков вкладок */
.tab-content > * {
    width: 100%;

    box-sizing: border-box;
}


/* =========================================================
   SECTION 9. INLINE NOTIFICATIONS
   Внутренние сообщения внутри страницы Account
   ========================================================= */

.notification {
    padding: 10px;
    margin: 10px 0;

    border-radius: 4px;

    color: #ffffff;

    text-align: center;

    font-size: 14px;

    transition: opacity 0.3s ease;

    z-index: 150;
}

.notification.success {
    background: rgba(46, 125, 50, 0.8);

    border: 1px solid rgba(76, 175, 80, 0.8);
}

.notification.error {
    background: rgba(198, 40, 40, 0.8);

    border: 1px solid rgba(244, 67, 54, 0.8);
}


/* =========================================================
   SECTION 10. MODAL OVERLAY
   Общая подложка модальных окон
   ========================================================= */

.modal {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;

    z-index: 1000;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.modal[style*="flex"] {
    display: flex;

    opacity: 1;
}


/* =========================================================
   SECTION 11. MODAL CONTENT
   Внутренний блок модального окна
   ========================================================= */

.modal-content {
    width: 90%;
    max-width: 600px;

    padding: 20px;

    background: rgba(0, 0, 0, 1);

    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: 8px;

    color: #ffffff;

    text-align: center;

    position: relative;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

    box-sizing: border-box;
}

.modal-content::before {
    display: none;
}

.modal-content h2 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 400;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 20px;
}


/* =========================================================
   SECTION 12. MNEMONIC WORDS
   Сетка слов seed-фразы
   ========================================================= */

.mnemonic-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin: 10px 0;
}

.mnemonic-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mnemonic-number {
    width: 20px;

    color: #cccccc;

    font-size: 14px;
    text-align: right;
}

.mnemonic-word,
.mnemonic-word-input {
    flex: 1;

    width: 100%;

    padding: 8px;

    background: rgba(50, 50, 50, 0.8);

    border: 1px solid rgba(150, 150, 150, 0.3);
    border-radius: 4px;

    color: #ffffff;

    font-size: 14px;
    text-align: center;

    box-sizing: border-box;
}

.mnemonic-word-input:focus {
    border-color: #1E90FF;

    outline: none;
}

.mnemonic-words {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin: 10px 0;
}

#import-wallet-link {
    color: #1E90FF;

    text-decoration: none;

    font-size: 14px;
}

#import-wallet-link:hover {
    text-decoration: underline;
}


/* =========================================================
   SECTION 13. LIGHT THEME - ACCOUNT CONTAINER
   Светлая тема основного контейнера
   ========================================================= */

body.light-theme .account-container,
.light-theme .account-container {
    background: transparent;
}

body.light-theme .account-box,
.light-theme .account-box {
    background: transparent;

    border: 0;

    color: #333333;
}

body.light-theme .account-box::before,
.light-theme .account-box::before {
    box-shadow: none;
}


/* =========================================================
   SECTION 14. LIGHT THEME - ACCOUNT HERO
   Светлая тема голубой планки Account
   ========================================================= */

body.light-theme .account-hero,
.light-theme .account-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.02)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.42), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.36), rgba(4, 22, 32, 0.86));

    border-color: #037d9c;

    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.28),
        0 10px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.light-theme .account-hero h1,
.light-theme .account-hero h1 {
    color: #ffffff;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.light-theme .account-hero p,
.light-theme .account-hero p {
    color: #e8fbff;
}

body.light-theme .account-hero-badge,
.light-theme .account-hero-badge {
    background: rgba(255, 255, 255, 0.16);

    border-color: rgba(255, 255, 255, 0.40);
}

body.light-theme .account-hero-badge i,
body.light-theme .account-hero-badge span,
.light-theme .account-hero-badge i,
.light-theme .account-hero-badge span {
    color: #ffffff;
}

/* =========================================================
   LIGHT THEME - ACCOUNT HERO WALLET STATUS
   Светлая тема поля статуса кошелька
   ========================================================= */

body.light-theme .account-hero-wallet-status,
.light-theme .account-hero-wallet-status {
    background: rgba(15, 18, 22, 0.98);

    color: #ffffff;
}

body.light-theme .account-hero-wallet-status.not-connected,
.light-theme .account-hero-wallet-status.not-connected {
    border-color: rgba(255, 195, 74, 0.52);
}

body.light-theme .account-hero-wallet-status.connected,
.light-theme .account-hero-wallet-status.connected {
    border-color: rgba(6, 171, 212, 0.45);
}

body.light-theme #account-hero-wallet-address,
.light-theme #account-hero-wallet-address {
    color: #ffffff;
}

/* =========================================================
   SECTION 15. LIGHT THEME - TABS
   Светлая тема вкладок
   ========================================================= */

body.light-theme .tab-button,
.light-theme .tab-button {
    background: rgba(200, 200, 200, 0.8);

    border: 1px solid rgba(150, 150, 150, 0.3);

    color: #333333;
}

body.light-theme .tab-button.active,
.light-theme .tab-button.active {
    background: #037d9c;

    border: 2px solid #037d9c;

    color: #ffffff;
}

body.light-theme .tab-button:hover,
.light-theme .tab-button:hover {
    background: rgba(220, 220, 220, 0.8);

    border-color: rgba(150, 150, 150, 0.3);
}

body.light-theme .tab-button.active:hover,
.light-theme .tab-button.active:hover {
    background: #037d9c;

    border-color: #037d9c;
}

body.light-theme .tab-button::before,
.light-theme .tab-button::before {
    background: #e0e0e0;
}

body.light-theme .tab-button.active::before,
.light-theme .tab-button.active::before {
    background: rgba(3, 125, 156, 0.8);
}

body.light-theme .tab-button:hover::before,
.light-theme .tab-button:hover::before {
    background: #d0d0d0;
}

body.light-theme .tab-button.active:hover::before,
.light-theme .tab-button.active:hover::before {
    background: rgba(3, 125, 156, 0.8);
}

body.light-theme .tab-button i,
.light-theme .tab-button i {
    color: #000000;
}

body.light-theme .tab-button:hover i,
.light-theme .tab-button:hover i {
    color: #1e90ff;
}

body.light-theme .tab-button.active i,
body.light-theme .tab-button.active:hover i,
.light-theme .tab-button.active i,
.light-theme .tab-button.active:hover i {
    color: #ffffff;
}


/* =========================================================
   SECTION 16. LIGHT THEME - INLINE NOTIFICATIONS
   Светлая тема внутренних сообщений
   ========================================================= */

body.light-theme .notification.success,
.light-theme .notification.success {
    background: rgba(46, 125, 50, 0.8);

    border: 1px solid rgba(76, 175, 80, 0.8);

    color: #ffffff;
}

body.light-theme .notification.error,
.light-theme .notification.error {
    background: rgba(198, 40, 40, 0.8);

    border: 1px solid rgba(244, 67, 54, 0.8);

    color: #ffffff;
}


/* =========================================================
   SECTION 17. LIGHT THEME - MODALS
   Светлая тема модальных окон
   ========================================================= */

body.light-theme .modal-content,
.light-theme .modal-content {
    background: rgba(255, 255, 255, 1);

    border: 2px solid rgba(200, 200, 200, 1);

    color: #333333;
}

body.light-theme .modal-content::before,
.light-theme .modal-content::before {
    background: rgba(255, 255, 255, 0.95);

    border: 2px solid rgba(150, 150, 150, 1);
}

body.light-theme .modal-content h2,
.light-theme .modal-content h2 {
    color: #333333;
}

/* =========================================================
   SECTION 18. MOBILE ADAPTATION - ACCOUNT PAGE
   Мобильная адаптация страницы Account
   ========================================================= */

/* ========================= */
/* TABLET / SMALL DESKTOP */
/* Планшеты и небольшие экраны */
/* ========================= */

@media (max-width: 900px) {
    .account-hero {
        --account-cutout-size: 190px;
        --account-cutout-x: 50%;
        --account-cutout-y: calc(100% - 199px);

        flex-direction: column;
        align-items: stretch;

        padding: 22px 26px;
    }

    .account-hero-avatar-panel {
        align-self: center;
        flex: 0 0 auto;
        min-height: 172px;
        margin: 6px 0 0;
    }

    .account-avatar-logo-mask {
        width: 170px;
        height: 128px;
    }

    .user-avatar,
    .avatar {
        width: 102px;
        height: 102px;
        margin-top: 34px;
    }

    .account-hero-badge {
        justify-content: flex-start;
    }

    .account-hero-wallet-status {
        position: static;

        width: 100%;
        max-width: 100%;

        margin-top: 14px;
    }
}

/* ========================= */
/* MOBILE */
/* Мобильные экраны */
/* ========================= */

@media (max-width: 600px) {
    .account-container {
        padding: 14px;
    }

    .account-box {
        padding: 0;

        min-height: auto;
    }

    .account-hero {
        --account-cutout-size: 160px;
        --account-cutout-y: calc(100% - 166px);

        padding: 16px 18px;

        border-radius: 16px;
    }

    .account-hero h1 {
        font-size: 26px;
        line-height: 1.1;
    }

    .account-hero p {
        font-size: 14px;
        line-height: 1.45;
    }

    .account-hero-wallet-status {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 10px;
    }

    .account-hero-wallet-status-text {
        justify-content: center;
    }

    .account-hero-connect-wallet-btn {
        width: 100%;

        justify-content: center;
    }

    .account-hero-badge {
        width: 100%;

        justify-content: center;

        padding: 11px 18px;

        box-sizing: border-box;
    }

    .account-hero-avatar-panel {
        min-height: 146px;
    }

    .account-avatar-logo-mask {
        width: 142px;
        height: 112px;
    }

    .user-avatar,
    .avatar {
        width: 88px;
        height: 88px;
        margin-top: 28px;
    }

    .account-avatar-name-badge {
        max-width: 180px;
    }

    .account-avatar-name-badge span {
        font-size: 12px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 calc(50% - 10px);

        min-width: 145px;
    }

    .mnemonic-container,
    .mnemonic-words {
        grid-template-columns: 1fr;
    }
}


/* ========================= */
/* SMALL MOBILE */
/* Очень маленькие экраны */
/* ========================= */

@media (max-width: 420px) {
    .account-container {
        padding: 12px;
    }

    .account-box {
        padding: 0;
    }

    .account-hero {
        padding: 15px 16px;
    }

    .account-hero h1 {
        font-size: 24px;
        line-height: 1.1;
    }

    .account-hero p {
        font-size: 13px;
        line-height: 1.4;
    }

    .account-hero-wallet-status {
        padding: 10px;
    }

    .account-hero-wallet-status-text {
        font-size: 12px;
    }

    .account-hero-badge {
        width: 100%;

        justify-content: center;

        padding: 10px 16px;

        box-sizing: border-box;
    }

    .tab-button {
        flex: 1 1 100%;
    }
}

/* Modern account dashboard layout */
.account-dashboard-layout {
    display: grid;
    grid-template-columns: var(--vertical-panel-width, 250px) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    align-items: start;
}

.account-dashboard-sidebar {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    width: var(--vertical-panel-width, 250px);
    min-height: 520px;
    padding: 10px;
    border: 1px solid rgba(6, 171, 212, 0.44);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.account-dashboard-layout .tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    max-width: none;
    gap: 6px;
    margin: 0;
}

.account-dashboard-layout .tab-button {
    width: 100%;
    max-width: none;
    height: 40px;
    min-width: 0;
    justify-content: flex-start;
    padding: 6px 10px 6px 50px;
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;
    background: rgba(8, 12, 16, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.account-dashboard-layout .tab-button::before {
    left: 8px;
    width: 27px;
    height: 27px;
    background: rgba(6, 171, 212, 0.12);
    border: 1px solid rgba(6, 217, 255, 0.22);
}

.account-dashboard-layout .tab-button i {
    left: 8px;
    width: 27px;
    height: 27px;
    color: #ffffff;
    font-size: 12px;
}

.account-dashboard-layout .tab-button:hover {
    transform: translateX(-1px);
    border-color: rgba(6, 217, 255, 0.42);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.08)),
        rgba(10, 14, 18, 0.72);
    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-dashboard-layout .tab-button:hover::before {
    border-color: rgba(6, 217, 255, 0.50);
    background: rgba(6, 171, 212, 0.22);
}

.account-dashboard-layout .tab-button:hover i {
    color: #00ccff;
}

.account-dashboard-layout .tab-button.active,
.account-dashboard-layout .tab-button.active:hover {
    border: 1px solid rgba(6, 217, 255, 0.86);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.54), rgba(0, 255, 204, 0.18));
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(6, 217, 255, 0.24),
        0 0 16px rgba(6, 217, 255, 0.30),
        0 10px 22px rgba(3, 125, 156, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-dashboard-layout .tab-button.active::before {
    background: #037d9c;
    border-color: rgba(6, 217, 255, 0.68);
    box-shadow: 0 0 12px rgba(6, 217, 255, 0.28);
}

.account-dashboard-layout .tab-button.active.tab-pulse {
    animation: account-sidebar-active-tab-pulse 0.56s ease-in-out 1;
}

@keyframes account-sidebar-active-tab-pulse {
    0%,
    100% {
        border-color: rgba(6, 217, 255, 0.82);
        box-shadow:
            0 0 0 1px rgba(6, 217, 255, 0.24),
            0 0 16px rgba(6, 217, 255, 0.30),
            0 10px 22px rgba(3, 125, 156, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    50% {
        border-color: rgba(6, 217, 255, 1);
        box-shadow:
            0 0 0 2px rgba(6, 217, 255, 0.54),
            0 0 24px rgba(6, 217, 255, 0.58),
            0 0 46px rgba(0, 255, 204, 0.24),
            0 12px 28px rgba(3, 125, 156, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }
}

.account-dashboard-layout .account-sidebar-page-link {
    text-decoration: none;
}

.account-dashboard-layout .account-sidebar-logout {
    margin-top: 18px;
    border-color: rgba(204, 76, 76, 0.42);
    background: rgba(118, 33, 33, 0.2);
    color: rgba(255, 211, 211, 0.94);
}

.account-dashboard-layout .account-sidebar-logout::before {
    border-color: rgba(204, 76, 76, 0.42);
    background: rgba(160, 48, 48, 0.24);
}

.account-dashboard-layout .account-sidebar-logout i {
    color: #ff9999;
}

.account-dashboard-layout .account-sidebar-logout:hover {
    border-color: rgba(224, 87, 87, 0.68);
    background: rgba(160, 48, 48, 0.3);
    color: #ffe0e0;
}

.account-dashboard-layout .account-sidebar-logout:hover::before {
    background: rgba(186, 58, 58, 0.34);
}

.account-dashboard-layout .account-sidebar-logout:hover i {
    color: #ffb1b1;
}

.account-dashboard-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.account-profile-overview,
.account-profile-stats,
.account-dashboard-main .tab-content.active > * {
    border: 1px solid rgba(158, 231, 255, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
        rgba(4, 10, 16, 0.78);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    backdrop-filter: blur(14px);
}

.account-profile-overview {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr) minmax(210px, 0.78fr);
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.008), rgba(255, 255, 255, 0.002)),
        rgba(4, 10, 16, 0.04);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.022);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.account-profile-avatar-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    justify-self: center;
}

.account-profile-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #037d9c;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.account-profile-online-dot {
    position: absolute;
    right: 13px;
    bottom: 20px;
    width: 17px;
    height: 17px;
    border: 3px solid rgba(4, 10, 16, 0.96);
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 10px rgba(50, 232, 120, 0.70);
}

.account-profile-summary {
    min-width: 0;
    text-align: left;
}

.account-profile-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.account-profile-title-row h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
}

.account-profile-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #037d9c;
    color: #ffffff;
    font-size: 10px;
}

.account-profile-handle {
    display: block;
    margin-top: 6px;
    color: rgba(232, 251, 255, 0.66);
    font-size: 13px;
}

.account-profile-details {
    display: grid;
    gap: 9px;
    margin-top: 17px;
}

.account-profile-details span,
.account-profile-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: rgba(232, 251, 255, 0.82);
    font-size: 13px;
}

.account-profile-details i,
.account-profile-meta i {
    width: 18px;
    color: #9ee7ff;
    text-align: center;
}

.account-profile-balance {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(3, 125, 156, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(3, 125, 156, 0.22), rgba(3, 125, 156, 0.06)),
        rgba(3, 12, 18, 0.72);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-profile-balance.connected {
    border-color: rgba(53, 208, 127, 0.42);
    background:
        linear-gradient(135deg, rgba(53, 208, 127, 0.16), rgba(3, 125, 156, 0.08)),
        rgba(3, 12, 18, 0.72);
}

.account-profile-balance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(3, 125, 156, 0.22);
    color: #9ee7ff;
}

.account-profile-balance-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-profile-balance-copy span {
    color: rgba(232, 251, 255, 0.62);
    font-size: 12px;
    font-weight: 650;
}

.account-profile-balance-copy strong {
    color: #ffffff;
    font-size: 23px;
    line-height: 1.05;
}

.account-profile-balance-copy small {
    color: rgba(232, 251, 255, 0.7);
    font-size: 12px;
}

.account-profile-connect-wallet-btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(158, 231, 255, 0.22);
    border-radius: 10px;
    background: rgba(3, 125, 156, 0.22);
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.account-profile-connect-wallet-btn:hover {
    border-color: rgba(3, 125, 156, 0.62);
    background: rgba(3, 125, 156, 0.36);
}

.account-profile-balance.connected .account-profile-connect-wallet-btn {
    display: none;
}

.account-profile-side {
    display: grid;
    gap: 18px;
    align-self: stretch;
    padding-left: 22px;
    border-left: 1px solid rgba(158, 231, 255, 0.14);
}

.account-edit-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #037d9c;
    color: #ffffff;
    font-weight: 750;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(3, 125, 156, 0.24);
}

.account-profile-meta {
    display: grid;
    gap: 14px;
}

.account-profile-meta span {
    align-items: flex-start;
}

.account-profile-meta strong,
.account-profile-meta b {
    display: block;
    color: rgba(232, 251, 255, 0.62);
    font-size: 12px;
    font-weight: 650;
}

.account-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.account-stat-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.account-stat-card i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(3, 125, 156, 0.16);
    color: #9ee7ff;
}

.account-stat-card span {
    color: rgba(232, 251, 255, 0.62);
    font-size: 12px;
}

.account-stat-card strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

.account-dashboard-main .tab-content {
    max-width: none;
}

.account-dashboard-main .tab-content.active {
    display: block;
}

.account-dashboard-main .tab-section-header,
.account-dashboard-main .wallet-header,
.account-dashboard-main .transaction-form-container h2 {
    text-align: left;
}

body.light-theme .account-dashboard-sidebar,
.light-theme .account-dashboard-sidebar,
body.light-theme .account-profile-overview,
.light-theme .account-profile-overview,
body.light-theme .account-profile-stats,
.light-theme .account-profile-stats,
body.light-theme .account-dashboard-main .tab-content.active > *,
.light-theme .account-dashboard-main .tab-content.active > * {
    border-color: rgba(3, 125, 156, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 252, 0.92));
    color: #132235;
    box-shadow:
        0 14px 30px rgba(26, 70, 98, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.light-theme .account-dashboard-layout .tab-button,
.light-theme .account-dashboard-layout .tab-button {
    border-color: rgba(6, 171, 212, 0.28);
    background: rgba(8, 12, 16, 0.92);
    color: #ffffff;
}

body.light-theme .account-dashboard-sidebar,
.light-theme .account-dashboard-sidebar {
    border-color: rgba(6, 171, 212, 0.44);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.light-theme .account-dashboard-layout .tab-button::before,
.light-theme .account-dashboard-layout .tab-button::before {
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.14);
}

body.light-theme .account-dashboard-layout .tab-button i,
.light-theme .account-dashboard-layout .tab-button i {
    color: #ffffff;
}

body.light-theme .account-dashboard-layout .tab-button:hover,
.light-theme .account-dashboard-layout .tab-button:hover {
    border-color: rgba(6, 217, 255, 0.62);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.12);
}

body.light-theme .account-dashboard-layout .tab-button:hover i,
.light-theme .account-dashboard-layout .tab-button:hover i {
    color: #e8fbff;
}

body.light-theme .account-dashboard-layout .tab-button.active,
.light-theme .account-dashboard-layout .tab-button.active {
    border-color: rgba(6, 217, 255, 0.86);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.54), rgba(0, 255, 204, 0.18));
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(6, 217, 255, 0.24),
        0 0 16px rgba(6, 217, 255, 0.30),
        0 10px 22px rgba(3, 125, 156, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.light-theme .account-dashboard-layout .tab-button.active::before,
.light-theme .account-dashboard-layout .tab-button.active::before {
    background: #037d9c;
}

body.light-theme .account-dashboard-layout .account-sidebar-logout,
.light-theme .account-dashboard-layout .account-sidebar-logout {
    border-color: rgba(190, 58, 58, 0.3);
    background: rgba(190, 58, 58, 0.08);
    color: #a52f2f;
}

body.light-theme .account-dashboard-layout .account-sidebar-logout:hover,
.light-theme .account-dashboard-layout .account-sidebar-logout:hover {
    border-color: rgba(190, 58, 58, 0.5);
    background: rgba(190, 58, 58, 0.14);
    color: #8f2323;
}

body.light-theme .account-dashboard-layout .account-sidebar-logout i,
.light-theme .account-dashboard-layout .account-sidebar-logout i {
    color: #b43c3c;
}

body.light-theme .account-profile-title-row h2,
.light-theme .account-profile-title-row h2,
body.light-theme .account-stat-card strong,
.light-theme .account-stat-card strong {
    color: #122033;
}

body.light-theme .account-profile-details span,
.light-theme .account-profile-details span,
body.light-theme .account-profile-meta span,
.light-theme .account-profile-meta span,
body.light-theme .account-profile-handle,
.light-theme .account-profile-handle,
body.light-theme .account-stat-card span,
.light-theme .account-stat-card span {
    color: #52637a;
}

body.light-theme .account-stat-card,
.light-theme .account-stat-card {
    background: rgba(3, 125, 156, 0.045);
}

body.light-theme .account-profile-balance,
.light-theme .account-profile-balance {
    border-color: rgba(3, 125, 156, 0.16);
    background:
        linear-gradient(135deg, rgba(3, 125, 156, 0.09), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.84);
}

body.light-theme .account-profile-balance-copy strong,
.light-theme .account-profile-balance-copy strong {
    color: #122033;
}

body.light-theme .account-profile-balance-copy span,
body.light-theme .account-profile-balance-copy small,
.light-theme .account-profile-balance-copy span,
.light-theme .account-profile-balance-copy small {
    color: #52637a;
}

body.light-theme .account-profile-connect-wallet-btn,
.light-theme .account-profile-connect-wallet-btn {
    background: #037d9c;
    color: #ffffff;
}

@media (max-width: 940px) {
    .account-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .account-dashboard-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        min-height: 0;
    }

    .account-profile-overview {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .account-profile-side {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(158, 231, 255, 0.14);
        padding-top: 16px;
    }

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

@media (max-width: 620px) {
    .account-profile-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .account-profile-summary,
    .account-profile-title-row {
        justify-content: center;
        text-align: center;
    }

    .account-profile-details span {
        justify-content: center;
    }

    .account-profile-balance {
        grid-template-columns: 44px minmax(0, 1fr);
        text-align: left;
    }

    .account-profile-connect-wallet-btn {
        grid-column: 1 / -1;
    }

    .account-profile-stats {
        grid-template-columns: 1fr;
    }
}

/* Final account hero geometry based on Smart Contracts */
.account-container,
.account-box {
    max-width: 1180px !important;
}

.account-hero {
    height: 260px !important;
    min-height: 260px !important;
    padding: 22px 26px !important;
    align-items: flex-start !important;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.02)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.42), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.36), rgba(4, 22, 32, 0.86)) !important;
    box-shadow:
        0 0 18px rgba(3, 125, 156, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.account-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(3, 125, 156, 0.1) 52%, transparent) !important;
}

.account-hero-text {
    align-self: flex-start !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.account-hero-badge {
    top: 22px !important;
    right: 26px !important;
}

.account-hero-wallet-status {
    right: 26px !important;
    bottom: 26px !important;
    margin: 0 !important;
    transform: translate(0, 0) !important;
}

.account-hero-visual {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important;
}

.account-earth-image {
    position: absolute !important;
    left: 50% !important;
    height: 100% !important;
    max-height: 100% !important;
    width: min(248%, 2920px) !important;
    top: 50% !important;
    object-fit: fill !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0.72 !important;
}

/* Final account hero parity with the assistant page. */
.account-hero {
    height: 230px !important;
    min-height: 230px !important;
    margin-bottom: 22px !important;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 7px 14px;
    border: 1px solid rgba(6, 217, 255, 0.42);
    border-radius: 999px;
    background: rgba(3, 125, 156, 0.18);
    color: #e8fbff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-hero h1 {
    font-weight: 800;
    line-height: 1.15;
}

.account-hero p {
    max-width: 340px;
}

.account-page-status {
    position: absolute;
    right: 12px;
    bottom: 18px;
    z-index: 3;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    min-height: 30px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
    border: 1px solid rgba(50, 232, 120, 0.36);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: #5dff9a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow:
        0 0 14px rgba(50, 232, 120, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    box-sizing: border-box;
}

.account-page-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #32e878;
    box-shadow: 0 0 10px rgba(50, 232, 120, 0.8);
}

.account-page-status.loading .account-page-status-dot {
    animation: account-status-orb-pulse 1.35s ease-in-out infinite;
}

.account-page-status-dots {
    display: none;
    align-items: center;
    gap: 2px;
}

.account-page-status.loading .account-page-status-dots {
    display: inline-flex;
}

.account-page-status-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #5dff9a;
    animation: account-page-status-dot-pulse 1s ease-in-out infinite;
}

.account-page-status-dots i:nth-child(2) {
    animation-delay: 0.16s;
}

.account-page-status-dots i:nth-child(3) {
    animation-delay: 0.32s;
}

.account-page-status.loading {
    animation: account-page-status-glow 1.2s ease-in-out infinite;
}

@keyframes account-page-status-dot-pulse {
    0%,
    70%,
    100% {
        opacity: 0.32;
        transform: translateY(0);
    }

    35% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes account-status-orb-pulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.82);
        box-shadow:
            0 0 6px rgba(50, 232, 120, 0.45),
            0 0 14px rgba(50, 232, 120, 0.22);
    }

    50% {
        opacity: 1;
        transform: scale(1.22);
        box-shadow:
            0 0 12px rgba(50, 232, 120, 0.95),
            0 0 26px rgba(50, 232, 120, 0.45);
    }
}

@keyframes account-page-status-glow {
    0%,
    100% {
        box-shadow:
            0 0 14px rgba(50, 232, 120, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }

    50% {
        box-shadow:
            0 0 20px rgba(50, 232, 120, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }
}

.account-profile-balance:not(.connected) {
    border-color: rgba(255, 195, 74, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 195, 74, 0.14), rgba(255, 145, 0, 0.05)),
        rgba(15, 18, 22, 0.96);
    box-shadow:
        0 0 14px rgba(255, 195, 74, 0.16),
        0 8px 22px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-profile-balance:not(.connected) .account-profile-balance-icon {
    border: 1px solid rgba(255, 195, 74, 0.42);
    background: rgba(255, 195, 74, 0.14);
    color: #ffd56a;
}

.account-profile-balance:not(.connected) .account-profile-connect-wallet-btn {
    border-color: rgba(255, 195, 74, 0.55);
    background:
        linear-gradient(90deg, rgba(255, 195, 74, 0.20), rgba(255, 145, 0, 0.10)),
        rgba(255, 195, 74, 0.10);
    color: #ffd56a;
    box-shadow:
        0 0 12px rgba(255, 195, 74, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.account-profile-balance:not(.connected) .account-profile-connect-wallet-btn:hover {
    border-color: rgba(255, 195, 74, 0.68);
    background:
        linear-gradient(90deg, rgba(255, 195, 74, 0.28), rgba(255, 145, 0, 0.15)),
        rgba(255, 195, 74, 0.14);
    box-shadow:
        0 0 16px rgba(255, 195, 74, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-profile-balance.loading {
    border-color: rgba(54, 168, 102, 0.64);
    animation: account-profile-wallet-loading 1.2s ease-in-out infinite;
}

.account-profile-balance.loading .account-profile-balance-icon {
    color: #36a866;
}

.account-profile-balance.loading .account-profile-balance-copy small {
    color: #36a866;
    font-weight: 750;
}

.account-profile-balance.loading .account-profile-balance-copy small::after {
    content: "";
    display: inline-block;
    width: 16px;
    margin-left: 5px;
    animation: account-profile-loading-dots 1.2s steps(4, end) infinite;
}

/* Account profile settings modal */
.account-settings-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    box-sizing: border-box;
}

.account-settings-modal[style*="flex"] {
    display: flex !important;
    opacity: 1 !important;
}

.account-settings-modal-card {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: auto;
    padding: 24px;
    border: 1px solid rgba(6, 217, 255, 0.26);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(6, 217, 255, 0.16), transparent 36%),
        linear-gradient(145deg, rgba(8, 18, 32, 0.98), rgba(5, 8, 14, 0.98));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: left;
}

.account-settings-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-settings-modal-close:hover {
    border-color: rgba(6, 217, 255, 0.68);
    background: rgba(6, 171, 212, 0.18);
}

.account-settings-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 34px;
    margin-bottom: 18px;
}

.account-settings-modal-header h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

.account-settings-modal-header p {
    margin: 0;
    color: #cfefff;
    font-size: 13px;
    line-height: 1.4;
}

.account-settings-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(6, 217, 255, 0.36);
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(6, 171, 212, 0.24), rgba(0, 0, 0, 0.16)),
        rgba(255, 255, 255, 0.06);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-settings-modal-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.account-settings-modal-message.success {
    background: rgba(26, 188, 126, 0.16);
    color: #65f0b2;
}

.account-settings-modal-message.error {
    background: rgba(255, 87, 87, 0.16);
    color: #ff9a9a;
}

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

.account-settings-modal-field,
.account-settings-modal-file {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #dff8ff;
    font-size: 13px;
    font-weight: 600;
}

.account-settings-modal-field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    outline: none;
}

.account-settings-modal-field input:focus {
    border-color: rgba(6, 217, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(6, 217, 255, 0.12);
}

.account-settings-modal-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(6, 217, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.account-settings-modal-avatar img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(6, 217, 255, 0.32);
}

.account-settings-modal-avatar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.account-settings-modal-file {
    cursor: pointer;
}

.account-settings-modal-file input {
    margin-top: 4px;
    max-width: 260px;
}

.account-settings-modal-password-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #dff8ff;
    font-weight: 600;
}

.account-settings-password-field {
    margin-bottom: 16px;
}

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

.account-settings-modal-primary,
.account-settings-modal-secondary {
    min-height: 40px;
    min-width: 132px;
    border-radius: 12px;
    color: #ffffff;
}

.account-settings-modal-primary {
    border: 1px solid rgba(6, 171, 212, 0.62);
    background:
        linear-gradient(135deg, rgba(6, 217, 255, 0.92), rgba(6, 120, 212, 0.92));
}

.account-settings-modal-secondary,
#account-settings-remove-avatar-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

body.account-settings-modal-open {
    overflow: hidden;
}

body.light-theme .account-settings-modal-close,
.light-theme .account-settings-modal-close {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

body.light-theme .account-settings-modal-header p,
.light-theme .account-settings-modal-header p,
body.light-theme .account-settings-modal-field,
.light-theme .account-settings-modal-field,
body.light-theme .account-settings-modal-file,
.light-theme .account-settings-modal-file,
body.light-theme .account-settings-modal-password-toggle,
.light-theme .account-settings-modal-password-toggle {
    color: #4b5563;
}

body.light-theme .account-settings-modal-field input,
.light-theme .account-settings-modal-field input {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}

body.light-theme .account-settings-modal-avatar,
.light-theme .account-settings-modal-avatar {
    border-color: rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
    .account-settings-modal {
        padding: 14px;
    }

    .account-settings-modal-card {
        padding: 22px 16px;
    }

    .account-settings-modal-grid {
        grid-template-columns: 1fr;
    }

    .account-settings-modal-header {
        padding-right: 34px;
    }

    .account-settings-modal-avatar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@keyframes account-profile-loading-dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%,
    100% {
        content: "...";
    }
}

@keyframes account-profile-wallet-loading {
    0%,
    100% {
        box-shadow:
            0 0 14px rgba(54, 168, 102, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    50% {
        box-shadow:
            0 0 22px rgba(54, 168, 102, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

@keyframes account-bank-card-border-loading {
    0%,
    100% {
        opacity: 0.46;
        box-shadow:
            0 0 12px rgba(54, 168, 102, 0.24),
            0 0 0 1px rgba(54, 168, 102, 0.38),
            inset 0 0 12px rgba(54, 168, 102, 0.12);
    }

    50% {
        opacity: 1;
        box-shadow:
            0 0 24px rgba(54, 232, 126, 0.74),
            0 0 56px rgba(54, 232, 126, 0.46),
            0 0 88px rgba(54, 232, 126, 0.24),
            0 0 0 2px rgba(54, 232, 126, 0.76),
            inset 0 0 18px rgba(54, 232, 126, 0.22);
    }
}

@media (max-width: 760px) {
    .account-hero {
        height: auto !important;
        min-height: 230px !important;
        padding: 20px !important;
    }

    .account-page-status {
        right: 12px;
        bottom: 14px;
    }
}

/* Profile overview as a compact Paxor banking card. */
.account-profile-overview {
    grid-template-columns: minmax(110px, 1fr) minmax(0, 560px) minmax(110px, 1fr);
    justify-content: center;
    align-items: stretch;
}

.account-bank-card-shell {
    grid-column: 2;
    width: min(100%, 560px);
    min-width: 0;
    min-height: 352px;
    justify-self: center;
    perspective: 1200px;
}

.account-bank-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 352px;
    transform-style: preserve-3d;
    isolation: isolate;
}

.account-bank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid rgba(54, 168, 102, 0.46);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
}

.account-bank-card.loading::after {
    animation: account-bank-card-border-loading 1.4s ease-in-out infinite;
}

.account-profile-overview {
    position: relative;
    transition:
        max-height 0.42s ease,
        margin 0.42s ease,
        padding 0.42s ease,
        transform 0.42s ease;
}

.account-profile-overview-toggle {
    position: absolute;
    left: 50%;
    bottom: -16px;
    z-index: 10;
    width: 44px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 217, 255, 0.48);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(8, 12, 16, 0.94);
    color: #e8fbff;
    cursor: pointer;
    box-shadow:
        0 0 14px rgba(6, 171, 212, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.account-profile-overview-toggle:hover {
    border-color: rgba(6, 217, 255, 0.78);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.34), rgba(0, 255, 204, 0.14)),
        rgba(8, 12, 16, 0.98);
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.28),
        0 10px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateX(-50%) translateY(-1px);
}

.account-profile-overview-toggle i {
    transition: transform 0.28s ease;
}

.account-dashboard-main.profile-overview-collapsed .account-profile-overview {
    max-height: 42px;
    min-height: 42px;
    margin-bottom: 10px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transform: translateY(-8px);
}

.account-dashboard-main.profile-overview-collapsed .account-bank-card-shell,
.account-dashboard-main.profile-overview-collapsed .account-profile-side {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-24px) scale(0.985);
    transition: opacity 0.22s ease, transform 0.34s ease;
}

.account-dashboard-main.profile-overview-collapsed .account-profile-overview-toggle {
    top: 8px;
    bottom: auto;
}

.account-dashboard-main.profile-overview-collapsed .account-profile-overview-toggle i {
    transform: rotate(180deg);
}

.account-bank-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(6, 171, 212, 0.46);
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 14%, rgba(6, 217, 255, 0.14), transparent 31%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.26),
        0 0 18px rgba(3, 125, 156, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.62s ease, opacity 0.2s ease;
}

.account-bank-card-face::before {
    content: "";
    position: absolute;
    inset: 24px;
    z-index: 0;
    background: url("/static/img/favicon/android-chrome-512x512.png") center / 42% auto no-repeat;
    opacity: 0.055;
    filter: grayscale(1) brightness(1.6);
    pointer-events: none;
}

.account-bank-card-front {
    display: flex;
    flex-direction: column;
    z-index: 2;
    transform: rotateY(0deg);
    opacity: 1;
}

.account-bank-card-back {
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 1;
    transform: rotateY(180deg);
    opacity: 0;
}

.account-bank-card.flipped .account-bank-card-front {
    z-index: 1;
    transform: rotateY(-180deg);
    opacity: 0;
}

.account-bank-card.flipped .account-bank-card-back {
    z-index: 2;
    transform: rotateY(0deg);
    opacity: 1;
}

.account-bank-card.loading .account-bank-card-front {
    border-color: rgba(54, 232, 126, 0.84);
}

.account-bank-card-top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.account-bank-card .account-profile-avatar-wrap {
    width: 108px;
    height: 108px;
    justify-self: start;
}

.account-bank-card .account-profile-online-dot {
    right: 7px;
    bottom: 10px;
    width: 15px;
    height: 15px;
    border-width: 2px;
}

.account-bank-card .account-profile-title-row h2 {
    font-size: 24px;
}

.account-bank-card .account-profile-details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 14px;
    margin-top: 13px;
}

.account-bank-card .account-profile-details span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-bank-card .account-profile-balance {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 0;
    padding: 10px 12px;
}

.account-bank-card .account-profile-balance-copy {
    align-items: center;
    text-align: center;
}

.account-bank-card .account-profile-balance-main-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.account-bank-card .account-profile-balance-main-line span {
    font-size: 13px;
    font-weight: 800;
}

.account-bank-card .account-profile-balance-main-line strong {
    font-size: 23px;
    line-height: 1;
}

.account-bank-card .account-profile-balance-copy small {
    display: block;
    width: 100%;
    margin-top: 4px;
    text-align: center;
}

.account-profile-disconnect-wallet-btn {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 107, 107, 0.58);
    border-radius: 9px;
    background: rgba(255, 107, 107, 0.12);
    color: #ffb3b3;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.account-profile-disconnect-wallet-btn:hover {
    background: rgba(255, 107, 107, 0.20);
}

.account-profile-disconnect-wallet-btn[hidden] {
    display: none;
}

.account-bank-card-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(54, 168, 102, 0.58);
    border-radius: 10px;
    background: rgba(6, 38, 24, 0.90);
    color: #5dff9a;
    font-size: 12px;
    font-weight: 800;
    box-shadow:
        0 0 18px rgba(54, 168, 102, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.account-bank-card.loading .account-bank-card-loading {
    display: flex;
}

.account-bank-card-loading-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #36a866;
    box-shadow: 0 0 10px rgba(54, 168, 102, 0.80);
    animation: account-status-orb-pulse 1.35s ease-in-out infinite;
}

.account-bank-card-loading-dots {
    display: inline-flex;
    gap: 3px;
}

.account-bank-card-loading-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5dff9a;
    animation: account-page-status-dot-pulse 1s ease-in-out infinite;
}

.account-bank-card-loading-dots i:nth-child(2) {
    animation-delay: 0.16s;
}

.account-bank-card-loading-dots i:nth-child(3) {
    animation-delay: 0.32s;
}

.account-bank-card-flip-btn,
.account-bank-card-copy-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 1px solid rgba(158, 231, 255, 0.22);
    border-radius: 9px;
    background: rgba(3, 125, 156, 0.18);
    color: #e8fbff;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.account-bank-card-copy-btn {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9ee7ff;
    font-size: 13px;
}

.account-bank-card-copy-btn.copied {
    color: #5dff9a;
}

.account-bank-card-front > .account-bank-card-flip-btn {
    position: absolute;
    top: 14px;
    right: 14px;
}

.account-bank-card-flip-btn:hover,
.account-bank-card-copy-btn:hover {
    border-color: rgba(6, 217, 255, 0.55);
    background: rgba(3, 125, 156, 0.32);
}

.account-bank-card-copy-btn:hover {
    border-color: transparent;
    background: transparent;
    color: #ffffff;
}

.account-bank-card-copy-btn.copied:hover {
    color: #5dff9a;
}

.account-bank-card-copy-btn[hidden] {
    display: none;
}

.account-bank-card-back-top,
.account-bank-card-address-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-bank-card-back-top {
    color: #e8fbff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-bank-card-address-row {
    justify-content: center;
    padding: 16px;
    border: 1px solid rgba(158, 231, 255, 0.18);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.20);
}

.account-bank-card-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    text-align: center;
}

.account-bank-card-meta span {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(158, 231, 255, 0.14);
    border-radius: 11px;
    background: rgba(8, 12, 16, 0.44);
    color: #cfefff;
    font-size: 11px;
    line-height: 1.25;
}

.account-bank-card-meta i {
    color: #9ee7ff;
    font-size: 13px;
}

.account-bank-card-meta strong {
    color: rgba(232, 251, 255, 0.72);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-bank-card-meta b {
    max-width: 100%;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#account-profile-wallet-address-full {
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.account-profile-side {
    grid-column: 3;
    gap: 14px;
    align-content: start;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
}

.account-profile-side-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 30px;
    margin-top: 6px;
}

.account-edit-profile-btn {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(6, 171, 212, 0.62);
    border-radius: 5px;
    background: rgba(3, 125, 156, 0.76);
    font-size: 11px;
    box-shadow: 0 5px 12px rgba(3, 125, 156, 0.16);
}

.account-edit-profile-btn i {
    font-size: 11px;
}

@media (max-width: 980px) {
    .account-profile-overview {
        grid-template-columns: 1fr;
    }

    .account-bank-card-shell,
    .account-profile-side {
        grid-column: 1;
    }

    .account-bank-card-shell {
        justify-self: center;
    }

    .account-profile-side {
        padding-top: 14px;
        padding-left: 0;
        border-top: 1px solid rgba(158, 231, 255, 0.14);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .account-bank-card-shell,
    .account-bank-card {
        min-height: 404px;
    }

    .account-bank-card-top {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding-top: 34px;
    }

    .account-bank-card .account-profile-avatar-wrap {
        width: 82px;
        height: 82px;
    }

    .account-bank-card .account-profile-title-row h2 {
        font-size: 20px;
    }

    .account-bank-card .account-profile-details {
        grid-template-columns: 1fr;
    }

    .account-bank-card .account-profile-balance {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .account-profile-connect-wallet-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-profile-disconnect-wallet-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-bank-card-meta {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .account-bank-card-meta span {
        padding: 7px 8px;
    }
}

/* Let the global star video show through the account page, like the assistant page. */
body:has(.account-container) .main-content,
.account-container,
.account-box,
.account-dashboard-layout,
.account-dashboard-main {
    background: transparent !important;
}

.account-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0.01)),
        radial-gradient(circle at 72% 46%, rgba(3, 125, 156, 0.24), transparent 36%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.16), rgba(4, 22, 32, 0.18)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.account-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(3, 125, 156, 0.05) 52%, transparent) !important;
}

.account-profile-overview {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.account-profile-side {
    background: transparent !important;
}
.security-passkey-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(32, 217, 255, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(32, 217, 255, 0.08), rgba(86, 227, 159, 0.05));
}

.security-add-passkey {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(32, 217, 255, 0.35);
    border-radius: 10px;
    background: rgba(32, 217, 255, 0.12);
    color: #20d9ff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.security-add-passkey:hover {
    border-color: #20d9ff;
    background: rgba(32, 217, 255, 0.18);
}

.security-add-passkey:disabled {
    opacity: 0.55;
    cursor: wait;
}

.security-passkey-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.security-passkey-row {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(8, 12, 16, 0.38);
}

.security-passkey-row div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.security-passkey-row strong {
    color: #f7fbfc;
    font-size: 14px;
}

.security-passkey-row span {
    color: rgba(247, 251, 252, 0.62);
    font-size: 12px;
}

.security-passkey-row button {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 95, 162, 0.3);
    border-radius: 9px;
    background: rgba(255, 95, 162, 0.08);
    color: #ff7aaa;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.security-passkey-row button:hover {
    border-color: #ff7aaa;
}


/* =========================================================
   ACCOUNT LEFT SIDEBAR — MATCH RIGHT VERTICAL MENUS
   Width 320px / items 48px / icon circles 33px / font 14.5px
   ========================================================= */

.account-dashboard-layout {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 18px !important;
}

.account-dashboard-sidebar {
    width: 320px !important;
    min-width: 320px !important;

    min-height: 0 !important;
    max-height: calc(100vh - 104px) !important;

    padding: 26px 17px 20px !important;

    border: 1px solid rgba(6, 171, 212, 0.44) !important;
    border-radius: 17px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.015)
        ),
        linear-gradient(
            180deg,
            rgba(6, 171, 212, 0.14),
            rgba(0, 0, 0, 0.10)
        ),
        rgba(15, 18, 22, 0.98) !important;

    box-shadow:
        0 0 28px rgba(6, 171, 212, 0.24),
        0 20px 54px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: thin !important;
    scrollbar-color:
        rgba(6, 217, 255, 0.48)
        rgba(255, 255, 255, 0.055) !important;
}

.account-dashboard-sidebar::-webkit-scrollbar {
    width: 9px !important;
}

.account-dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055) !important;
}

.account-dashboard-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(6, 217, 255, 0.42) !important;
}

.account-dashboard-layout .tabs {
    gap: 0 !important;
}

.account-dashboard-layout .tab-button {
    width: 100% !important;
    max-width: none !important;

    min-height: 48px !important;
    height: 48px !important;

    margin: 7px 0 !important;
    padding: 8px 13px 8px 52px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;

    color: #ffffff !important;

    font-size: 14.5px !important;
    font-weight: 550 !important;
    line-height: 1.25 !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;

    box-sizing: border-box !important;
}

.account-dashboard-layout .tab-button::before {
    left: 9px !important;

    width: 33px !important;
    height: 33px !important;

    border: 1px solid rgba(6, 217, 255, 0.22) !important;
    border-radius: 50% !important;

    background: rgba(6, 171, 212, 0.12) !important;
}

.account-dashboard-layout .tab-button i {
    left: 9px !important;

    width: 33px !important;
    height: 33px !important;

    color: #ffffff !important;

    font-size: 14px !important;
}

.account-dashboard-layout .tab-button:hover {
    transform: none !important;

    border-color: rgba(6, 217, 255, 0.42) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.20),
            rgba(0, 255, 204, 0.08)
        ),
        rgba(10, 14, 18, 0.72) !important;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.account-dashboard-layout .tab-button:hover::before {
    border-color: rgba(6, 217, 255, 0.50) !important;
    background: rgba(6, 171, 212, 0.22) !important;
}

.account-dashboard-layout .tab-button:hover i {
    color: #ffffff !important;
}

.account-dashboard-layout .tab-button.active,
.account-dashboard-layout .tab-button.active:hover {
    border-color: rgba(6, 217, 255, 0.86) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.54),
            rgba(0, 255, 204, 0.18)
        ) !important;

    color: #ffffff !important;
}

.account-dashboard-layout .tab-button.active::before {
    width: 33px !important;
    height: 33px !important;

    background: #037d9c !important;
    border-color: rgba(6, 217, 255, 0.68) !important;
}

.account-dashboard-layout .account-sidebar-logout {
    margin-top: 18px !important;
}

/* Light theme keeps the same dimensions */
body.light-theme .account-dashboard-sidebar,
.light-theme .account-dashboard-sidebar {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.92),
            rgba(238, 246, 249, 0.94)
        ) !important;

    border-color: rgba(3, 125, 156, 0.28) !important;
}

body.light-theme .account-dashboard-layout .tab-button,
.light-theme .account-dashboard-layout .tab-button {
    font-size: 14.5px !important;
}

/* Tablet: column moves above content but keeps menu proportions */
@media (max-width: 940px) {
    .account-dashboard-layout {
        grid-template-columns: 1fr !important;
    }

    .account-dashboard-sidebar {
        position: relative !important;
        top: auto !important;

        width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
    }
}

/* Phone: slightly smaller only when space is limited */
@media (max-width: 620px) {
    .account-dashboard-sidebar {
        padding: 18px 12px 16px !important;
        border-radius: 15px !important;
    }

    .account-dashboard-layout .tab-button {
        min-height: 46px !important;
        height: 46px !important;

        padding-left: 49px !important;

        font-size: 14px !important;
    }

    .account-dashboard-layout .tab-button::before,
    .account-dashboard-layout .tab-button i {
        left: 8px !important;

        width: 31px !important;
        height: 31px !important;
    }
}

/* PAXOR PROFILE ACTIONS VERTICAL FIX — 2026-07-18 */

/* Правая колонка действий возле карточки профиля */
.account-profile-side {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: center !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.account-profile-side-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 176px) !important;
    align-items: stretch !important;
    justify-content: end !important;
    align-content: center !important;
    gap: 7px !important;
    width: min(100%, 176px) !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.account-profile-side-actions .account-edit-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 11px !important;
    border: 1px solid rgba(6, 171, 212, 0.58) !important;
    border-radius: 7px !important;
    background:
        linear-gradient(90deg, rgba(3, 125, 156, 0.86), rgba(4, 83, 104, 0.82)) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    box-shadow:
        0 6px 14px rgba(3, 125, 156, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.account-profile-side-actions .account-edit-profile-btn:hover {
    border-color: rgba(6, 217, 255, 0.72) !important;
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.96), rgba(3, 125, 156, 0.90)) !important;
    transform: translateX(-2px) !important;
}

.account-profile-side-actions .account-edit-profile-btn i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    font-size: 10px !important;
}

.account-profile-side-actions .account-edit-profile-btn span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Сохраняем карточку и вертикальную колонку в одной строке */
@media (min-width: 981px) {
    .account-profile-overview {
        grid-template-columns:
            minmax(24px, 1fr)
            minmax(500px, 560px)
            176px !important;
        column-gap: 16px !important;
    }
}

/* На более узких экранах кнопки переходят под карточку */
@media (max-width: 980px) {
    .account-profile-side {
        grid-column: 1 !important;
        justify-content: center !important;
        align-self: start !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(158, 231, 255, 0.14) !important;
    }

    .account-profile-side-actions {
        grid-template-columns: repeat(2, minmax(0, 176px)) !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 370px !important;
    }
}

@media (max-width: 520px) {
    .account-profile-side-actions {
        grid-template-columns: minmax(0, 220px) !important;
        max-width: 220px !important;
    }
}

/* PAXOR PROFILE ACTIONS ON CARD - 2026-07-18 */
.account-bank-card-front {
    padding-right: 18px !important;
}

.account-bank-card-top:has(.account-card-actions) {
    position: relative !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: start !important;
}

.account-card-actions {
    position: absolute !important;
    inset: 112px 0 auto auto !important;
    z-index: 2;
    display: flex;
    justify-self: end;
    align-self: start;
    width: 158px;
    min-width: 0;
    margin-top: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
}

.account-card-actions .account-card-actions-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    justify-items: end !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.account-card-actions .account-edit-profile-btn {
    width: auto !important;
    min-width: 0 !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(232, 251, 255, 0.68) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    justify-content: flex-end !important;
    text-align: right !important;
    box-shadow: none !important;
}

.account-card-actions .account-edit-profile-btn:hover {
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(158, 231, 255, 0.42) !important;
    transform: none !important;
}

.account-card-actions .account-edit-profile-btn i {
    display: none !important;
}

.account-card-actions .account-edit-profile-btn span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.account-bank-card .account-profile-balance {
    width: 100% !important;
    box-sizing: border-box !important;
}

.account-bank-card .account-profile-title-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.account-bank-card .account-profile-title-row h2 {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.account-bank-card .account-profile-verified {
    flex: 0 0 22px !important;
    margin-top: 1px !important;
    transform: none !important;
}

.account-bank-card .account-profile-details {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    margin-top: 14px !important;
}

.account-bank-card .account-profile-details span {
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
}

.account-bank-card .account-profile-details i {
    flex: 0 0 18px !important;
    margin-top: 1px !important;
}

.account-bank-card-front > .account-bank-card-flip-btn {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
}

.account-bank-card-front > .account-bank-card-flip-btn i {
    position: relative;
    z-index: 1;
}

.account-bank-card-front > .account-bank-card-flip-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.92;
    transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 981px) {
    .account-profile-overview:has(.account-card-actions) {
        grid-template-columns:
            minmax(24px, 1fr)
            minmax(500px, 560px)
            minmax(24px, 1fr) !important;
    }
}

@media (max-width: 620px) {
    .account-bank-card-front {
        padding-right: 16px !important;
    }

    .account-bank-card-top:has(.account-card-actions) {
        grid-template-columns: 88px minmax(0, 1fr) !important;
    }

    .account-card-actions {
        inset: 82px 0 auto auto !important;
        width: 122px !important;
        height: auto !important;
        margin-top: 0 !important;
    }

    .account-card-actions .account-edit-profile-btn {
        font-size: 10.5px !important;
    }
}
