/* Личный кабинет - элегантный адаптивный дизайн с поддержкой светлой темы */

.dashboard-main {
    padding-top: 72px;
    padding-bottom: 60px;
    min-height: 100vh;
}

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

/* Карточка баланса */
.wallet-header {
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
}

/* Десктоп */
@media (min-width: 1025px) {
    .wallet-header {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallet-header {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wallet-header {
        padding: 0 16px;
        margin-bottom: 32px;
        margin-top: 24px;
    }
}

.wallet-balance-card {
    background: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0.6;
}

.wallet-balance-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.05),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.light .wallet-balance-card {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.05);
}

.light .wallet-balance-card::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.light .wallet-balance-card::after {
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.03),
        transparent
    );
}

@media (max-width: 768px) {
    .wallet-balance-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
}

.wallet-balance-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.wallet-balance-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 28px;
    letter-spacing: -1px;
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
}

.light .wallet-balance-value {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
}

@media (max-width: 1024px) {
    .wallet-balance-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .wallet-balance-value {
        font-size: 2rem;
        margin-bottom: 24px;
    }
}

.wallet-balance-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wallet-action-btn.wallet-action-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    flex: 0 0 48px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.light .wallet-action-btn.wallet-action-icon {
    background: var(--bg-soft);
    border-color: var(--border);
}

.wallet-action-btn.wallet-action-icon:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.light .wallet-action-btn.wallet-action-icon:hover {
    background: var(--card-hover);
}

@media (min-width: 1025px) {
    .wallet-balance-actions {
        max-width: 420px;
    }
}

.wallet-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

@media (max-width: 768px) {
    .wallet-action-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
}

.wallet-action-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.wallet-action-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.wallet-action-primary:hover::before {
    left: 100%;
}

.wallet-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.light .wallet-action-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.light .wallet-action-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.wallet-action-secondary {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.wallet-action-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.light .wallet-action-secondary {
    background: var(--bg-soft);
    border-color: var(--border);
}

.light .wallet-action-secondary:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
}

/* Быстрые действия */
.wallet-quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 0;
    margin-bottom: 40px;
}

/* Десктоп */
@media (min-width: 1025px) {
    .wallet-quick-actions {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
        gap: 16px;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallet-quick-actions {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
        gap: 14px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wallet-quick-actions {
        padding: 0 16px;
        gap: 12px;
        margin-bottom: 32px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .wallet-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
    }

    .asset-actions {
        gap: 8px;
    }

    .asset-action-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .asset-action-btn.asset-action-history {
        flex: 0 0 44px;
        align-self: stretch;
    }
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out backwards;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action:nth-child(1) { animation-delay: 0.05s; }
.quick-action:nth-child(2) { animation-delay: 0.1s; }
.quick-action:nth-child(3) { animation-delay: 0.15s; }
.quick-action:nth-child(4) { animation-delay: 0.2s; }
.quick-action:nth-child(5) { animation-delay: 0.25s; }
.quick-action:nth-child(6) { animation-delay: 0.3s; }

.light .quick-action {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--border);
}

.light .quick-action:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.light .quick-action-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.light .quick-action:hover .quick-action-icon {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (min-width: 1025px) {
    .quick-action {
        padding: 24px 18px;
    }
}

@media (max-width: 768px) {
    .quick-action {
        padding: 16px 12px;
        gap: 8px;
    }
}

.quick-action:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
    background: rgba(26, 31, 46, 0.8);
}

.quick-action:hover::before {
    opacity: 1;
}

.light .quick-action:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.quick-action-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quick-action:hover .quick-action-icon::before {
    width: 100px;
    height: 100px;
}

.light .quick-action-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

@media (max-width: 768px) {
    .quick-action-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
}

.quick-action:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.quick-action span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 768px) {
    .quick-action span {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .quick-action span {
        font-size: 0.75rem;
    }
}

/* Список активов - таблица с балансами */
.wallet-assets {
    padding: 0;
    margin-bottom: 48px;
}

/* Десктоп */
@media (min-width: 1025px) {
    .wallet-assets {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
    
    .assets-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallet-assets {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wallet-assets {
        padding: 0 16px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .wallet-assets {
        padding: 0 12px;
    }
}

.wallet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wallet-section-header {
        margin-bottom: 16px;
    }
}

.wallet-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.light .wallet-section-header h2 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .wallet-section-header h2 {
        font-size: 1.25rem;
    }
}

.assets-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-soft);
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.light .assets-count {
    background: var(--bg-soft);
    border-color: var(--border);
}

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out backwards;
}

.asset-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-main {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    cursor: pointer;
}

.asset-main:focus {
    outline: none;
}

.asset-main:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
    border-radius: 16px;
}

.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 0;
    margin-top: -8px;
    border-top: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease, border-top-color 0.3s ease, padding-top 0.3s ease;
}

.asset-item.expanded .asset-actions {
    opacity: 1;
    pointer-events: auto;
    max-height: 200px;
    padding-top: 12px;
    margin-top: 0;
    border-top-color: rgba(148, 163, 184, 0.2);
    transform: translateY(0);
}

.asset-item.expanded {
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.asset-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.asset-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.asset-action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.asset-action-btn:focus {
    outline: none;
}

.asset-action-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.asset-action-btn:active {
    transform: translateY(0);
}

.asset-action-btn.asset-action-receive {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.asset-action-btn.asset-action-receive:hover {
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.asset-action-btn.asset-action-send {
    background: rgba(26, 31, 46, 0.7);
    border-color: rgba(99, 102, 241, 0.15);
}

.asset-action-btn.asset-action-send:hover {
    border-color: var(--primary);
}

.asset-action-btn.asset-action-history {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
}

.asset-action-btn.asset-action-history:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}
.asset-item:nth-child(1) { animation-delay: 0.05s; }
.asset-item:nth-child(2) { animation-delay: 0.1s; }
.asset-item:nth-child(3) { animation-delay: 0.15s; }
.asset-item:nth-child(4) { animation-delay: 0.2s; }
.asset-item:nth-child(5) { animation-delay: 0.25s; }
.asset-item:nth-child(6) { animation-delay: 0.3s; }
.asset-item:nth-child(7) { animation-delay: 0.35s; }
.asset-item:nth-child(8) { animation-delay: 0.4s; }
.asset-item:nth-child(9) { animation-delay: 0.45s; }
.asset-item:nth-child(10) { animation-delay: 0.5s; }

.light .asset-item {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--border);
}

.light .asset-item:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.light .asset-item::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.light .asset-item.expanded {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.light .asset-actions {
    border-top-color: rgba(99, 102, 241, 0.15);
}

.light .asset-action-btn {
    background: var(--bg-soft);
    border-color: var(--border);
}

.light .asset-action-btn:hover {
    background: var(--card-hover);
    border-color: var(--primary);
}

.light .asset-action-btn.asset-action-send {
    background: var(--bg-elevated);
}

.light .asset-action-btn.asset-action-history:hover {
    background: rgba(99, 102, 241, 0.12);
}

@media (min-width: 1025px) {
    .asset-item {
        padding: 24px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .asset-item {
        padding: 16px;
        gap: 14px;
        border-radius: 14px;
    }

    .asset-main {
        gap: 12px;
    }

    .asset-actions {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .asset-action-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
    }

    .asset-action-btn .asset-action-label {
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .asset-action-btn.asset-action-history {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        padding: 10px 12px;
        border-radius: 12px;
    }
}

.asset-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
    background: rgba(26, 31, 46, 0.8);
}

.asset-item:hover::before {
    opacity: 1;
}

.light .asset-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.asset-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .asset-icon-wrapper {
        width: 48px;
        height: 48px;
    }
}

.asset-icon-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.asset-icon-wrapper .asset-symbol {
    display: none;
}

.asset-icon-wrapper.has-fallback .asset-icon {
    display: none;
}

.asset-icon-wrapper.has-fallback .asset-symbol {
    display: flex !important;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .asset-icon-wrapper.has-fallback .asset-symbol {
        font-size: 0.875rem;
    }
}

.asset-icon-wrapper.has-fallback.fallback-btc .asset-symbol {
    background: linear-gradient(135deg, #f7931a 0%, #ff9900 100%);
}

.asset-icon-wrapper.has-fallback.fallback-eth .asset-symbol {
    background: linear-gradient(135deg, #627eea 0%, #8a95f2 100%);
}

.asset-icon-wrapper.has-fallback.fallback-usdt .asset-symbol {
    background: linear-gradient(135deg, #26a17b 0%, #50d890 100%);
}

.asset-icon-wrapper.has-fallback.fallback-sol .asset-symbol {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}

.asset-icon-wrapper.has-fallback.fallback-xrp .asset-symbol {
    background: linear-gradient(135deg, #0085c3 0%, #00b4d8 100%);
}

.asset-icon-wrapper.has-fallback.fallback-ada .asset-symbol {
    background: linear-gradient(135deg, #0033ad 0%, #4c72d0 100%);
}

.asset-icon-wrapper.has-fallback.fallback-ton .asset-symbol {
    background: linear-gradient(135deg, #0088cc 0%, #00b3e6 100%);
}

.asset-icon-wrapper.has-fallback.fallback-bnb .asset-symbol {
    background: linear-gradient(135deg, #f3ba2f 0%, #f9d423 100%);
}

.asset-icon-wrapper.has-fallback.fallback-trump .asset-symbol {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.asset-icon-wrapper.has-fallback.fallback-link .asset-symbol {
    background: linear-gradient(135deg, #375bd2 0%, #5b7ee8 100%);
}

.asset-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.asset-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    width: 100%;
}

@media (max-width: 768px) {
    .asset-name-row {
        gap: 8px;
        margin-bottom: 4px;
    }
}

.asset-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .asset-price-row {
        gap: 6px;
        margin-top: 0;
    }
}

.asset-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .asset-price {
        font-size: 0.8125rem;
    }
}

.asset-change {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .asset-change {
        font-size: 0.8125rem;
    }
}

.asset-change.positive {
    color: #22c55e;
}

.asset-change.negative {
    color: #ef4444;
}

.asset-change:not(.positive):not(.negative) {
    color: var(--text-secondary);
}

.asset-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .asset-name {
        font-size: 1rem;
    }
}

.asset-symbol-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-soft);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.light .asset-symbol-text {
    background: var(--bg-soft);
    border-color: var(--border);
}

@media (max-width: 768px) {
    .asset-symbol-text {
        font-size: 0.6875rem;
        padding: 2px 8px;
    }
}

.asset-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

@media (max-width: 768px) {
    .asset-values {
        gap: 4px;
    }
}

.asset-balance {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 768px) {
    .asset-balance {
        font-size: 1rem;
    }
}

.asset-usd {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .asset-usd {
        font-size: 0.8125rem;
    }
}

.asset-usd.zero {
    opacity: 0.5;
}

/* Страница истории */
.wallet-history-page {
    padding: 0;
    margin-bottom: 60px;
}

/* Десктоп */
@media (min-width: 1025px) {
    .wallet-history-page {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallet-history-page {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wallet-history-page {
        padding: 0 16px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .wallet-history-page {
        padding: 0 12px;
    }
}

.wallet-history-page .wallet-section-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.wallet-history-page .wallet-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-history-page .history-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wallet-history-page .history-back-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.history-asset-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin: 18px 0 24px;
    border-radius: 14px;
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--border);
}

.history-asset-filter-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.history-asset-filter-reset {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-asset-filter-reset:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.history-asset-filter-reset:focus {
    outline: none;
}

.history-asset-filter-reset:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.light .history-asset-filter {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border);
}

.light .history-asset-filter-reset {
    background: var(--bg-soft);
    border-color: var(--border);
}

.light .history-asset-filter-reset:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
}

.light .wallet-history-page .history-back-btn {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--text);
}

.light .wallet-history-page .history-back-btn:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
}

.light .wallet-history-page .wallet-section-header h1 {
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .wallet-history-page .wallet-section-header h1 {
        font-size: 1.5rem;
    }

    .wallet-history-page .wallet-section-title {
        gap: 12px;
    }

    .wallet-history-page .history-back-btn {
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .wallet-history-page .wallet-section-title {
        gap: 10px;
    }

    .wallet-history-page .history-back-btn {
        padding: 7px 12px;
    }
}

@media (max-width: 600px) {
    .history-asset-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-asset-filter-reset {
        width: 100%;
        text-align: center;
    }

    .asset-actions {
        gap: 8px;
    }

    .asset-action-btn {
        padding: 9px 10px;
    }

    .asset-action-btn.asset-action-history {
        padding: 9px 10px;
    }
}

/* История операций */
.wallet-history {
    padding: 0;
    margin-bottom: 60px;
}

/* Десктоп */
@media (min-width: 1025px) {
    .wallet-history {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallet-history {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wallet-history {
        padding: 0 16px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .wallet-history {
        padding: 0 12px;
    }
}

.history-filter {
    padding: 8px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.light .history-filter {
    background: var(--bg-soft);
    border-color: var(--border);
}

.light .history-filter:hover {
    background: var(--card);
    border-color: var(--border-hover);
}

@media (max-width: 768px) {
    .history-filter {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
}

.history-filter:hover {
    border-color: var(--border-hover);
    background: var(--card);
}

.history-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.light .history-filter:focus {
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1025px) {
    .history-list {
        gap: 14px;
    }
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .history-empty {
        padding: 60px 20px;
    }
}

.history-empty svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.history-empty p {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .history-empty p {
        font-size: 0.9375rem;
    }
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.light .history-item {
    background: var(--card);
    border-color: var(--border);
}

.light .history-item:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
}

@media (min-width: 1025px) {
    .history-item {
        padding: 24px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .history-item {
        padding: 16px;
        gap: 14px;
        border-radius: 14px;
    }
}

.history-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.light .history-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.history-item:hover .history-icon {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .history-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

.history-icon.deposit {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.history-icon.withdraw {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.history-icon.exchange {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.history-icon.transfer {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.light .history-icon.deposit {
    background: rgba(34, 197, 94, 0.12);
}

.light .history-icon.withdraw {
    background: rgba(239, 68, 68, 0.12);
}

.light .history-icon.exchange {
    background: rgba(99, 102, 241, 0.12);
}

.light .history-icon.transfer {
    background: rgba(251, 191, 36, 0.12);
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .history-type {
        font-size: 0.9375rem;
    }
}

.history-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .history-meta {
        font-size: 0.8125rem;
    }
}

.history-amount {
    text-align: right;
}

.history-amount-value {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .history-amount-value {
        font-size: 1rem;
    }
}

.history-amount-value.positive {
    color: var(--up);
}

.history-amount-value.negative {
    color: var(--down);
}

.history-amount-usd {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.history-amount-usd.positive {
    color: var(--up);
}

.history-amount-usd.negative {
    color: var(--down);
}

.history-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.history-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.history-status.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.light .history-status.completed {
    background: rgba(34, 197, 94, 0.12);
}

.light .history-status.pending {
    background: rgba(251, 191, 36, 0.12);
}

.light .history-status.failed {
    background: rgba(239, 68, 68, 0.12);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Exchange modal */
.exchange-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exchange-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exchange-form .input-group {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 12px;
    align-items: center;
}

@media (max-width: 600px) {
    .exchange-form .input-group {
        grid-template-columns: 1fr;
    }
}

.exchange-form .input-wrapper {
    position: relative;
}

.exchange-form .input-wrapper input[readonly] {
    background: rgba(148, 163, 184, 0.08);
    cursor: default;
}

.exchange-form .input-suffix {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.exchange-form .swap-btn-premium {
    align-self: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text);
    transition: all 0.2s ease;
}

.exchange-form .swap-btn-premium:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.exchange-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(148, 163, 184, 0.06);
}

.light .exchange-summary {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.12);
}

.exchange-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exchange-summary-row span:last-child {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.exchange-summary-row[data-negative="true"] span:last-child {
    color: #f87171;
}

.exchange-form .form-feedback {
    margin-top: 4px;
}

/* Deposit modal */
.deposit-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deposit-steps-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.deposit-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.deposit-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    transition: all 0.2s ease;
}

.deposit-step-label {
    font-size: 14px;
    letter-spacing: 0.01em;
}

.deposit-step-item.active .deposit-step-number {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(99, 102, 241, 0.9));
    color: #0f172a;
}

.deposit-step-item.active .deposit-step-label {
    color: var(--text);
}

.deposit-step-item.completed .deposit-step-number {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(99, 102, 241, 0.5));
    color: #0f172a;
}

.deposit-step-item.completed .deposit-step-label {
    color: var(--text-secondary);
}

.deposit-step-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.4));
    opacity: 0.6;
}

.deposit-step-content {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.deposit-step-content.active {
    display: flex;
}

.deposit-section-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.deposit-section-subtitle {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.deposit-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.deposit-asset-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.75));
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-asset-card:hover:not(.is-selected),
.deposit-asset-card:focus-visible {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.deposit-asset-card.is-selected {
    border-color: rgba(129, 140, 248, 0.8);
    background: linear-gradient(150deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.35));
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.18);
}

.deposit-asset-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deposit-asset-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deposit-asset-icon img.is-hidden {
    display: none;
}

.deposit-asset-icon-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.86);
}

.deposit-asset-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.deposit-asset-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.deposit-asset-symbol {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.deposit-asset-arrow {
    margin-left: auto;
    color: rgba(148, 163, 184, 0.7);
    display: flex;
}

.deposit-network-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.deposit-network-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.deposit-network-title {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.deposit-network-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.deposit-network-button {
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-network-button:hover,
.deposit-network-button:focus-visible {
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.18);
}

.deposit-network-button.is-selected {
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(129, 140, 248, 0.18);
    color: #e0e7ff;
}

.deposit-step-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-back-btn:hover,
.deposit-back-btn:focus-visible {
    color: var(--text);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.deposit-selected-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.deposit-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.deposit-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.deposit-info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deposit-info-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.deposit-info-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    word-break: break-word;
}

.deposit-info-value span {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

.btn-compact {
    padding: 6px 12px;
    font-size: 0.8rem;
    line-height: 1.1;
}

.deposit-info-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.deposit-qr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.deposit-qr-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.deposit-qr-box {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    margin: 0 auto;
}

.deposit-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deposit-qr-overlay {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deposit-qr-overlay::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.2), transparent 60%),
        radial-gradient(circle at bottom, rgba(14, 165, 233, 0.18), transparent 65%);
    opacity: 0.7;
}

.deposit-qr-overlay img {
    position: relative;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.25));
}

.deposit-qr-placeholder {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.deposit-alert {
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
}

.deposit-alert.visible {
    display: block;
}

.deposit-alert.success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.deposit-alert.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.deposit-alert.info {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.24);
}

.deposit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.deposit-actions .btn-block {
    width: 100%;
}

@media (max-width: 768px) {
    .deposit-steps-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .deposit-step-line {
        width: 100%;
    }

    .deposit-step-header {
        flex-direction: column;
        align-items: stretch;
    }

    .deposit-selected-summary {
        justify-content: flex-start;
    }

    .deposit-asset-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .deposit-shell {
        gap: 20px;
    }

    .deposit-info {
        padding: 16px;
    }

    .deposit-qr-box {
        width: 200px;
        height: 200px;
    }

    .deposit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .deposit-actions .btn {
        width: 100%;
    }
}

/* Withdraw modal */
.withdraw-form {
    width: 100%;
}

.withdraw-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.withdraw-steps-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.withdraw-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.withdraw-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    transition: all 0.2s ease;
}

.withdraw-step-label {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.withdraw-step-item.active .withdraw-step-number {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(99, 102, 241, 0.9));
    color: #0f172a;
}

.withdraw-step-item.active .withdraw-step-label {
    color: var(--text);
}

.withdraw-step-item.completed .withdraw-step-number {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(99, 102, 241, 0.5));
    color: #0f172a;
}

.withdraw-step-item.completed .withdraw-step-label {
    color: var(--text-secondary);
}

.withdraw-step-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.4));
    opacity: 0.6;
}

.withdraw-step-content {
    display: none;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.4s ease-out;
}

.withdraw-step-content.active {
    display: flex;
}

.withdraw-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.withdraw-section-subtitle {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.withdraw-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.withdraw-asset-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.75));
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-asset-card:hover:not(.is-selected),
.withdraw-asset-card:focus-visible {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.withdraw-asset-card.is-selected {
    border-color: rgba(129, 140, 248, 0.8);
    background: linear-gradient(150deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.35));
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.18);
}

.light .withdraw-asset-card {
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.light .withdraw-asset-card:hover:not(.is-selected),
.light .withdraw-asset-card:focus-visible {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
}

.light .withdraw-asset-card.is-selected {
    background: linear-gradient(150deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.24));
    border-color: rgba(99, 102, 241, 0.75);
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.18);
}

.withdraw-asset-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.withdraw-asset-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.withdraw-asset-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.withdraw-asset-symbol {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-secondary);
    font-weight: 600;
}

.withdraw-asset-balance {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.withdraw-asset-balance.usd {
    font-size: 0.8rem;
    opacity: 0.85;
}

.withdraw-asset-arrow {
    margin-left: auto;
    display: flex;
    color: rgba(148, 163, 184, 0.8);
}

.withdraw-asset-card.is-empty {
    opacity: 0.55;
}

.withdraw-asset-card.is-empty:hover {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
    border-color: rgba(99, 102, 241, 0.18);
}

.withdraw-step-actions {
    display: flex;
    justify-content: flex-end;
}

.withdraw-step-actions .btn {
    min-width: 180px;
}

.light .withdraw-steps-bar {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.18);
}

.light .withdraw-step-number {
    background: rgba(99, 102, 241, 0.18);
    color: #4338ca;
}

.light .withdraw-step-item.active .withdraw-step-number {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    color: white;
}

.light .withdraw-step-item.completed .withdraw-step-number {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    color: white;
}

.withdraw-step-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.withdraw-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-back-btn:hover,
.withdraw-back-btn:focus-visible {
    color: var(--text);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.light .withdraw-back-btn {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-secondary);
}

.light .withdraw-back-btn:hover,
.light .withdraw-back-btn:focus-visible {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
    color: var(--text);
}

.withdraw-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.withdraw-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.withdraw-card {
    background: rgba(26, 31, 46, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(160%);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    height: 100%;
}

.light .withdraw-card {
    background: rgba(248, 249, 250, 0.95);
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.withdraw-form-card {
    gap: 24px;
}

.withdraw-summary-card {
    gap: 24px;
    padding: 24px 26px;
    max-width: 420px;
    justify-self: stretch;
}

.light .withdraw-summary-card {
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.12);
}

.withdraw-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.withdraw-card-caption {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.withdraw-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdraw-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.withdraw-input-wrapper {
    position: relative;
}

.withdraw-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.withdraw-max-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-max-btn:hover,
.withdraw-max-btn:focus-visible {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.18);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.2);
}

.withdraw-network-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.withdraw-network-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.light .withdraw-network-section {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(226, 232, 240, 0.8);
}

.withdraw-network-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.withdraw-network-title {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.withdraw-network-selected {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.withdraw-network-button {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-network-button:hover,
.withdraw-network-button:focus-visible {
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.18);
}

.withdraw-network-button.is-selected {
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(129, 140, 248, 0.18);
    color: #e0e7ff;
}

.light .withdraw-network-button {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(226, 232, 240, 0.8);
    color: var(--text);
}

.light .withdraw-network-button:hover,
.light .withdraw-network-button:focus-visible {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.light .withdraw-network-button.is-selected {
    background: rgba(99, 102, 241, 0.18);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.75);
}

.withdraw-available-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.withdraw-summary-card {
    padding: 24px 26px;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.withdraw-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 50%);
    opacity: 0.45;
}

.withdraw-summary-card > * {
    position: relative;
}

.withdraw-summary-status {
    min-height: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.withdraw-summary-status.is-loading {
    color: rgba(129, 140, 248, 0.85);
}

.withdraw-summary-status.is-error {
    color: #ef4444;
}

.withdraw-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.withdraw-summary .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.95rem;
}

.withdraw-summary .summary-row.total {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 12px;
    margin-top: 6px;
    font-weight: 700;
}

.withdraw-summary .summary-value {
    font-weight: 600;
    text-align: right;
}

.withdraw-summary .summary-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.withdraw-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.08);
}

.withdraw-actions {
    display: flex;
    justify-content: flex-end;
}

.withdraw-step-content .withdraw-actions {
    margin-top: 8px;
}

.withdraw-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.withdraw-actions .btn svg {
    transition: transform 0.2s ease;
}

.withdraw-actions .btn:not(:disabled):hover svg {
    transform: translateX(3px);
}

.withdraw-shell .form-feedback {
    margin: 0;
}

@media (max-width: 1024px) {
    .withdraw-steps-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .withdraw-step-line {
        width: 100%;
    }

    .withdraw-step-actions {
        justify-content: stretch;
    }
}

@media (max-width: 640px) {
    .withdraw-card {
        padding: 20px;
    }

    .withdraw-grid {
        gap: 18px;
    }

    .withdraw-available-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .withdraw-step-actions .btn {
        width: 100%;
    }

    .withdraw-back-btn {
        width: 100%;
        justify-content: center;
    }

    .withdraw-actions {
        width: 100%;
    }

    .withdraw-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.withdraw-selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.withdraw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.withdraw-summary .summary-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.withdraw-summary .summary-main {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.withdraw-summary .summary-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Спотовая торговля */
.spot-modal-body {
    padding: 0;
}

.spot-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding: 26px;
    background: linear-gradient(215deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 45%, rgba(15, 23, 42, 0.82) 100%);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 36px 70px rgba(15, 23, 42, 0.5);
}

.light .spot-layout {
    background: linear-gradient(215deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 55%, rgba(241, 245, 249, 0.94) 100%);
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.spot-main {
    flex: 1 1 640px;
    min-width: 280px;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
}

.spot-pair-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.spot-pair-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spot-pair-chip {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.spot-asset-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.spot-asset-name {
    font-weight: 600;
    color: var(--text);
}

.spot-asset-name.muted {
    color: var(--text-secondary);
    font-weight: 500;
}

.spot-asset-divider {
    opacity: 0.5;
}

.spot-price-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

.spot-market-type,
.spot-liquidity-tag,
.spot-order-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.28);
    backdrop-filter: blur(12px);
    max-width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    white-space: nowrap;
}

.spot-liquidity-tag {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.28);
}

.spot-price-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.light .spot-price-panel {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(99, 102, 241, 0.18);
}

.spot-price-value {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.spot-price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spot-price-quote {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.spot-order-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    width: 100%;
    box-sizing: border-box;
}

.light .spot-order-shell {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.16);
}

.spot-order-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spot-side-toggle {
    display: inline-flex;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(10px);
}

.spot-toggle-btn {
    position: relative;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s ease;
}

.spot-toggle-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.light .spot-toggle-btn.active {
    color: #fff;
}

.spot-order-type {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.spot-order-type-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.spot-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.spot-field-input select {
    width: 100%;
}

.spot-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spot-amount-input {
    position: relative;
    flex: 1;
}

.spot-amount-input input {
    padding-right: 72px;
    height: 52px;
    font-size: 1.1rem;
}

.spot-amount-suffix {
    position: absolute;
    inset: 0 16px 0 auto;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.spot-max-btn {
    padding: 0 16px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s ease;
}

.spot-max-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.spot-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.spot-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.spot-summary-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.light .spot-summary-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(148, 163, 184, 0.2);
}

.spot-summary-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.spot-summary-card strong {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.spot-submit-btn {
    height: 56px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.28);
}

.spot-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 300px;
    min-width: 240px;
    max-width: 340px;
    width: 100%;
}

.spot-aside-card {
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.spot-aside-card.contrast {
    background: linear-gradient(150deg, rgba(99, 102, 241, 0.3) 0%, rgba(14, 165, 233, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.32);
    color: #fff;
}

.light .spot-aside-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.spot-aside-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.spot-insights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spot-insight-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.92rem;
    color: var(--text);
    flex-wrap: wrap;
}

.spot-insight-label {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.spot-insight-item strong {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.spot-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-cta-subtitle {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.spot-cta-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.light .spot-cta-subtitle {
    color: var(--text);
}

.light .spot-cta-text {
    color: var(--text-secondary);
}

@media (max-width: 1280px) {
    .spot-layout {
        padding: 24px;
    }
}

@media (max-width: 992px) {
    .spot-layout {
        padding: 22px;
    }

    .spot-aside {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .spot-aside-card {
        flex: 1 1 220px;
        min-width: 200px;
    }

    .spot-main {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .spot-layout {
        padding: 18px 16px;
        gap: 18px;
    }

    .spot-aside {
        flex-direction: column;
    }

    .spot-order-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .spot-price-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .spot-price-value {
        font-size: 1.75rem;
    }

    .spot-aside-card {
        min-width: 0;
    }
}
