.lobstr-home {
    color: white;
    font-family: "Avenir Next", sans-serif;
    min-height: 100vh;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    background: #ffff;
}

/* ───── HEADER ───── */
.lobstr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;

}

.lobstr-home-top {
    background: #1697a6;
    padding: 20px 0;
}
.address-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.address-icon {
    background: #fff;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-icon img {
    width: 20px;
    height: 20px;
}

.address-arrow {
    margin-bottom: 2px;
}

.header-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.header-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.header-icons {
    display: flex;
    gap: 10px;
}

/* ───── BALANCE ───── */
.balance-section {
    text-align: center;
    margin-top: 30px;
}

.portfolio-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

#balance-visibility {
    background: none;
    border: none;
    margin: 0;
    cursor: pointer;
}

.eye-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(0.8);
    opacity: 0.7;
}

.balance-main {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}

.balance-sub {
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.85;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.growth-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 10px;
}

/* ───── ACTION BUTTONS ───── */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 12px;
    padding: 0 12px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 56px;
}

.action-circle {
    background: rgba(255, 255, 255, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    margin-top: 6px;
    font-size: 13px;
    color: white;
    font-weight: 400;
}

.action-button-icon {
    width: 30px;
}


/* ───── ASSET LIST ───── */
.asset-section {
    background: #fff;
    padding: 0 0 60px 0;
    color: var(--text-main);
    margin-top: 0;
    position: relative;
    height: 100%;
}

.asset-header {
    flex: .4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 18px 8px 18px;
    border-bottom: 1px solid #f0f2f7;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.asset-tools {
    display: flex;
    gap: 6px;
}

.asset-search, .asset-sort {
    background: none;
    border: none;
}

.asset-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 0;
}

.asset-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 12px 8px;
    border-bottom: 1px solid #f0f2f7;
    background: transparent;
}

.asset-card:last-child {
    border-bottom: none;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f6fa;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.asset-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 15px;
    min-width: 100px;
}

.asset-title {
    font-weight: 400;
    color: #146875C4;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.asset-sub {
    font-size: 12px;
    color: #8aa3b8;
    margin-top: 2px;
    font-weight: 400;
}

.asset-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 85px;
}

.token-balance {
    font-size: 14px;
    font-weight: 400;
    color: #146875C4;
    letter-spacing: 0;
    text-align: right;
}

.token-usd {
    font-size: 13px;
    color: #94a7b8;
    margin-top: 2px;
    font-weight: 400;
}

.add-asset {
    display: block;
    width: 95%;
    margin: 16px auto 0 auto;
    background: #f5f6fa;
    color: rgba(20, 104, 117, 0.77);
    border: none;
    border-radius: 10px;
    padding: 25px 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.discover-more {
    background: #ffff;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    padding-bottom: 20px;
}
@media (max-width: 400px) {
    .action-buttons {
        gap: 8px;
    }

    .promo-card {
        min-width: 200px;
    }
}

/* Wallet manager popup*/
.wallet-select-panel,
.wallet-add-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -4px 32px 0 rgba(16, 31, 46, 0.07), 0 2px 4px 0 rgba(16, 31, 46, 0.03);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    animation: slideUp 0.24s cubic-bezier(0.35, 0.94, 0.64, 1) 1;
    font-family: 'Avenir Next', sans-serif;
}

/* Затемнение фона */
.wallet-select-backdrop,
.wallet-add-backdrop {
    position: fixed;
    z-index: 4;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 26, 41, 0.6);
    transition: opacity 0.2s;
}

.wallet-add-backdrop {
    z-index: 6;
}

.wallet-add-panel {
    z-index: 7;
}

/* Шапка панели */
.wallet-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 16px 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: #16223A;
    letter-spacing: 0;
}

.wallet-select-add-btn {
    background: none;
    border: none;
    color: #19b4ff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

/* Секция списка */
.wallet-select-list-section {
    padding: 14px 16px 0 16px;
}

.wallet-select-list-title {
    color: #a3adc2;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0;
}

/* Список кошельков */
.wallet-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Элемент кошелька */
.wallet-select-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #142141;
    position: relative;
}

.wallet-select-avatar {
    height: 38px;
    background: none;
    border-radius: 10px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
}

.wallet-select-address {
    letter-spacing: 0.01em;
    font-size: 16px;
    font-weight: 500;
}

.wallet-select-badge {
    background: #19b4ff;
    color: #fff;
    font-size: 0.81rem;
    border-radius: 8px;
    padding: 2px 12px;
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.wallet-select-check {
    color: #19b4ff;
    font-size: 1.7rem;
    font-weight: 900;
    margin-left: 15px;
    line-height: 1;
    flex: 1;
    text-align: end;
}

/* Кнопка Manage Wallets */
.wallet-select-manage-btn {
    display: block;
    width: 100%;
    margin: 22px 0 14px 0;
    padding: 16px 0;
    border-radius: 12px;
    border: none;
    background: #f2f6fa;
    color: #172852;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.14s;
}

@keyframes walletSlideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes walletSlideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.wallet-select-panel.slide-in,
.wallet-add-panel.slide-in {
    animation: walletSlideIn 0.25s cubic-bezier(0.42, 0, 0.58, 1) both;
}

.wallet-select-panel.slide-out,
.wallet-add-panel.slide-out {
    animation: walletSlideOut 0.23s cubic-bezier(0.42, 0, 0.58, 1) both;
}

/* Скрытие элементов */
.hidden {
    display: none !important;
}

/* Add Wallet popup*/
.wallet-add-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: background .18s;
}

.wallet-add-panel {
    position: fixed;
    z-index: 70;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100vw;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    margin: 0 auto;
    padding: 0;
    animation: slide-in-bottom .35s cubic-bezier(.4, 1, .3, 1);
    will-change: transform;
}

.wallet-add-panel.hidden {
    display: none !important;
}

.wallet-add-panel.slide-in {
    animation: slide-in-bottom .35s cubic-bezier(.4, 1, .3, 1);
}

.wallet-add-panel.slide-out {
    animation: slide-out-bottom .35s cubic-bezier(.4, 1, .3, 1);
}

@keyframes slide-in-bottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slide-out-bottom {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.wallet-add-body {
    padding: 18px 18px 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.wallet-add-desc {
    text-align: left;
    color: rgba(152, 163, 175, 0.73);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 2px;
    margin-top: 8px;
}

.wallet-add-action {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 64, 90, 0.75);
    padding: 16px 0 13px 0;
    border-radius: 11px;
    transition: background .18s;
    cursor: pointer;
    font-family: "Avenir Next", sans-serif;
}

.wallet-add-action:hover, .wallet-add-action:active {
    background: #f6faff;
}

.wallet-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    background: none;
    border-radius: 8px;
    margin-right: 2px;
}

.asset-list-spinner {
    width: 32px;
    height: 32px;
    margin: 32px auto 24px;
    border: 4px solid rgba(0,0,0,0.12);
    border-top: 4px solid #23b7e5;
    border-radius: 50%;
    animation: asset-spin 0.7s linear infinite;
    display: block;
}
@keyframes asset-spin {
    to { transform: rotate(360deg);}
}

/* ───── PROMO CAROUSEL ───── */
.promo-carousel-wrapper {
    margin-top: 10px;
    background: #fff;
    font-family: "Avenir Next", sans-serif;
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 0 18px;
}

.promo-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.see-all-btn {
    font-size: 14px;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 700;
}

.promo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 12px;
    scrollbar-width: none;
}

.promo-carousel::-webkit-scrollbar {
    display: none;
}

.promo-card {
    min-width: 240px;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-token-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.promo-token-icon img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.promo-card img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

button.promo-card {
    display: flex;
    background: linear-gradient(145deg, rgba(75, 194, 205, 0.68), rgba(74, 203, 223, 0.89));

    border: none;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    margin: 8px 0;
    text-align: left;
}

.promo-list {
    padding: 0 8px 24px;
    flex: 1;
    overflow-y: auto;
}

.promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #14525e;
    margin-bottom: 4px;
    font-family: "Avenir Next", sans-serif;
}

.promo-description {
    font-size: 14px;
    color: #555;
    font-family: "Avenir Next", sans-serif;

}

.promo-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #ffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Avenir Next", sans-serif;

}

.promo-subtitle::after {
    content: " Show more";
    color: #3a3a3a;
    font-weight: 500;
    font-family: "Avenir Next", sans-serif;

}

.promo-card.dummy-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #d3d3d3, #eeeeee);
    color: #706f6f;
    font-weight: 500;
    padding: 20px;
    text-align: center;
}

.promo-card.dummy-card svg {
    width: 40px;
    height: 40px;
}

.dummy-label {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
    font-family: "Avenir Next", sans-serif;
}

.screen {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 0;
    transform: translateX(100%);
}

.screen.active {
    transform: translateX(0%);
    opacity: 1;
    z-index: 4;
    pointer-events: auto;
}

.screen.exit-right {
    transform: translateX(100%);
    z-index: 5;
}

.hidden {
    display: none !important;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #1796b0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.screen-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.promo-details-content {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

.promo-details-image-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(75, 194, 205, 0.68), rgba(74, 203, 223, 0.89));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.promo-details-image-wrapper.logo .promo-details-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.promo-details-image-wrapper.photo .promo-details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-details-header {
    text-align: left;
    margin-bottom: 24px;
    background: #ffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 100%;
    padding: 5px 0 10px 0;
}

.promo-details-title-label,
.promo-details-description-label,
.promo-details-date-label {
    color: rgba(85, 85, 85, 0.81);
    font-size: 14px;
    margin-top: 10px;
    padding: 0 10px;
}

.promo-details-title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    padding: 0 10px;
}

.promo-details-description {
    font-size: 16px;
    color: #555;
    line-height: 1.4;
    padding: 0 10px;
}

.promo-details-date {
    font-size: 14px;
    color: #999;
    padding: 0 10px;

}

.purchase-btn {
    margin-top: auto;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.token-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.token-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.promo-token-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-token-info {
    display: flex;
    flex-direction: column;
}

.promo-token-name {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.promo-token-meta {
    font-size: 13px;
    color: #7f8c8d;
}

.buy-token-btn {
    background: linear-gradient(145deg, rgba(75, 194, 205, 0.68), rgba(74, 203, 223, 0.89));
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.asset-popup-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.asset-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 80%;
    max-width: 400px;
    z-index: 1000;
    color: #000;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
    animation: scaleIn 200ms ease forwards;
    transform-origin: center center;

}

.asset-popup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.asset-popup-divider {
    width: 100%;
    height: 1px;
    background: #eeee;
    padding: 0 10px;
    margin-top: 10px;
}



.asset-popup-title {
    font-size: 22px;
    margin: 0;
}

.asset-popup-description {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.asset-popup-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.asset-popup-tokens {
    width: 100%;
}

.asset-popup-token-block {
    padding: 4px 0;
    margin-bottom: 4px;
    align-items: center;
}

.asset-popup-token-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 0;
    padding: 2px 0;
    line-height: 1.2;
}

.asset-popup-token-block .divider {
    height: 1px;
    background: #eeee;
    padding: 0 10px;
    margin-top: 10px;
}

.asset-popup-token-line .label {
    margin: 0;
    padding: 0;
    font-weight: 500;
    min-width: 48px;
    color: #a0aab5;
    font-size: 14px;
}

.asset-popup-token-line .value {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.token-icon-inline {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.asset-popup-info-item {
    display: flex;
    justify-content: space-between;
}

.asset-popup-info-item .label {
    font-size: 14px;
}

.asset-popup-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.asset-popup-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.asset-popup-btn.primary {
    background: linear-gradient(145deg, rgba(75, 194, 205, 0.68), rgba(74, 203, 223, 0.89));
    color: white;
}

.asset-popup-btn.secondary {
    background: linear-gradient(145deg, #d3d3d3, #eeeeee);
    color: #000;
}

.asset-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 24px;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 10;
}

@keyframes scaleIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}