* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', sans-serif !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', sans-serif !important;
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-logo {
    width: 120px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.video-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand-sub {
    font-weight: 700;
    font-size: 14px;
    color: #65676b;
    background: #e7f3ff;
    padding: 4px 10px;
    border-radius: 6px;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #42b72a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(66, 183, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0);
    }
}

.online-text {
    color: #65676b;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-none {
    display: none !important;
}

/* Hook container — Facebook dark blue */

.hook-container {
    background: #1877F2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 28px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hook-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hook-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #1c1e21;
}

.subtitle {
    font-size: 15px;
    color: #65676b;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    background: #f0f2f5;
    border: 2px solid #e4e6eb;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    color: #1c1e21;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #8a8d91;
}

.form-group input:focus {
    border-color: #1877F2;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

/* Primary button — Facebook blue */

.btn-submit {
    width: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    background: #1877F2;
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 24px;
    transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-submit:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
    background: #1565d8;
    box-shadow: none;
}

#registrationFeed {
    height: 170px !important;
    overflow: hidden;
    position: relative;
    min-height: unset !important;
}

#registrationFeed .feed-item {
    padding: 10px 0;
    margin: 0;
}

.security-block {
    border-top: 1px solid #e4e6eb;
    padding-top: 24px;
    text-align: center;
}

.security-text {
    font-size: 11px;
    color: #8a8d91;
    margin-bottom: 16px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.payment-logos img {
    height: 24px;
    width: auto;
    opacity: 0.5;
    border-radius: 4px;
    object-fit: contain;
}

.bottom-nav {
    padding: 22px 0 16px 0;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 5px;
}

.links a {
    color: #8a8d91;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dot-sep {
    width: 4px;
    height: 4px;
    background-color: #bec3c9;
    border-radius: 50%;
}

.copy {
    color: #8a8d91;
    font-size: 13px;
}

/* Loader */

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    animation: logoPulse 1.5s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from {
        opacity: 0.6;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1.02);
    }
}

.loader-title {
    font-size: 20px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 8px;
}

.loader-subtitle {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 32px;
    min-height: 20px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e4e6eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #1877F2;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Greeting */

.greeting-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-placeholder {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1877F2, #0866FF);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.greeting-text {
    font-size: 20px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 4px;
}

.greeting-status {
    font-size: 13px;
    color: #42b72a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.greeting-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #42b72a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(66, 183, 42, 0.1);
}

.mini-balance-card {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-balance-label {
    font-size: 14px;
    color: #65676b;
    font-weight: 600;
}

.mini-balance-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1c1e21;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 16px;
}

/* Strategy cards */

.strategy-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.strategy-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.strategy-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.strategy-content {
    background: #ffffff;
    border: 2px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.strategy-card:hover .strategy-content {
    border-color: #bec3c9;
}

.strategy-card input:checked~.strategy-content {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.04);
    box-shadow: 0 0 0 1px #1877F2;
}

.strategy-icon-box {
    width: 48px;
    height: 48px;
    background: #e7f3ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.strategy-icon {
    width: 28px;
    border-radius: 0;
    height: 28px;
    object-fit: contain;
}

.strategy-card input:checked~.strategy-content .strategy-icon-box {
    background: #1877F2;
}

.strategy-card input:checked~.strategy-content .strategy-icon-box .strategy-icon {
    filter: brightness(0) invert(1);
}

.strategy-details {
    flex: 1;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #1877F2;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 1;
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.strategy-name {
    font-weight: 800;
    font-size: 16px;
    color: #1c1e21;
}

.strategy-desc {
    font-size: 13px;
    color: #65676b;
    line-height: 1.4;
}

/* Sparkle icon */

.sparkle {
    width: 22px;
    height: 22px;
}

.sparkle .path {
    fill: #ffffff;
    stroke: #ffffff;
    transform-origin: center;
}

.ai-btn:hover .sparkle .path,
.ai-btn:focus .sparkle .path {
    animation: aiPathAnim 1.5s linear 0.5s infinite;
}

.sparkle .path:nth-child(1) {
    --scale_path: 1.2;
}

.sparkle .path:nth-child(2) {
    --scale_path: 1.2;
}

.sparkle .path:nth-child(3) {
    --scale_path: 1.2;
}

@keyframes aiPathAnim {
    0%,
    34%,
    71%,
    100% {
        transform: scale(1);
    }
    17%,
    49%,
    83% {
        transform: scale(var(--scale_path, 1.2));
    }
}

/* Dashboard */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7f3ff;
    color: #1877F2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c7deff;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #42b72a;
    border-radius: 50%;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(66, 183, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0);
    }
}

.strategy-badge {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Live balance — Facebook gradient */

.live-balance-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #0866FF 100%);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.live-balance-wrapper::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.live-balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.live-balance-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.live-balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
    will-change: contents;
}

.live-profit {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #42b72a;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.live-profit.live-profit--loss {
    background: #fee2e2;
    color: #dc2626;
}

@keyframes profitFlashGreen {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
        background: #5bd443;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes profitFlashRed {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
        background: #fca5a5;
        color: #991b1b;
    }
    100% {
        transform: scale(1);
    }
}

.live-profit.flash-green {
    animation: profitFlashGreen 0.5s ease;
}

.live-profit.flash-red {
    animation: profitFlashRed 0.5s ease;
    background: #fee2e2;
    color: #dc2626;
}

/* Chart */

.custom-chart-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#smoothChart {
    width: 100%;
    height: 100%;
    display: block;
}

/* Stats */

.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
}

.stat-card {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stat-icon--up {
    background: #e6f4ea;
    color: #42b72a;
}

.stat-icon--neutral {
    background: #e7f3ff;
    color: #1877F2;
}

.stat-icon--green {
    background: rgba(66, 183, 42, 0.15);
    color: #2d8a1a;
}

.stat-body {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #1c1e21;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stat-label {
    font-size: 10px;
    color: #8a8d91;
    font-weight: 500;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feed */

.feed-section {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background-color: #16a34a;
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    position: relative;
    min-height: 168px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e4e6eb;
    will-change: transform, opacity;
    transform-origin: top center;
    animation: feedCardDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feed-item.removing {
    animation: feedCardOut 0.3s forwards;
    pointer-events: none;
}

@keyframes feedCardDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feedCardOut {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 56px;
        margin-bottom: 0;
    }
    100% {
        opacity: 0;
        transform: translateX(40px);
        max-height: 0;
        padding: 0;
        border: none;
    }
}

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

.feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
}

.feed-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.feed-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-pair {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
}

.feed-time {
    font-size: 11px;
    color: #8a8d91;
    font-weight: 500;
}

.feed-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.feed-result {
    font-weight: 800;
    font-size: 14px;
    color: #42b72a;
}

.feed-result--loss {
    color: #dc2626;
}

.feed-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e6f4ea;
    color: #42b72a;
}

.feed-type-badge--loss {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 244, 244, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 12px 40px rgba(0, 0, 0, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-align: center;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #e7f3ff;
    color: #1877F2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-stats {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-stat-row:last-child {
    margin-bottom: 0;
}

.modal-stat-row span {
    color: #65676b;
}

.modal-stat-row strong {
    color: #1c1e21;
    font-weight: 700;
}

.modal-stat-divider {
    height: 1px;
    background: #e4e6eb;
    margin: 12px 0;
}

.modal-stat-total strong {
    font-size: 24px;
    color: #42b72a;
}

/* Summary hero */

.summary-hero {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #1877F2 0%, #0551b5 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Stats grid */

.stats-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.stat-box {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box-label {
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
}

.stat-box-value {
    font-size: 18px;
    font-weight: 800;
    color: #1c1e21;
}

.text-green {
    color: #42b72a;
}

.text-red {
    color: #dc2626;
}

/* Asset analysis list */

.asset-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 20px;
}

.asset-analysis-list::-webkit-scrollbar {
    width: 4px;
}

.asset-analysis-list::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 4px;
}

.asset-analysis-list::-webkit-scrollbar-thumb {
    background: #bec3c9;
    border-radius: 4px;
}

.sticky-action {
    position: sticky;
    bottom: 10px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 25%);
    padding-top: 24px;
    margin-top: -20px;
    z-index: 10;
}

.sticky-action .btn-submit {
    margin-bottom: 0;
}

.asset-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    padding: 12px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.asset-row:hover {
    transform: translateY(-2px);
    border-color: #bec3c9;
}

.asset-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #e4e6eb;
}

.asset-row-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.asset-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asset-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-row-name {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
}

.asset-row-amount {
    font-size: 14px;
    font-weight: 800;
}

.asset-row-amount.profit {
    color: #42b72a;
}

.asset-row-amount.loss {
    color: #dc2626;
}

.asset-bar-bg {
    width: 100%;
    height: 6px;
    background: #e4e6eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.asset-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.asset-bar-fill.profit {
    background: #42b72a;
}

.asset-bar-fill.loss {
    background: #ef4444;
}

/* Phone input adaptation */

.fb-phone-wrap .iti {
    width: 100%;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

.fb-phone-wrap .iti__flag-container {
    padding-left: 0px;
}

.fb-phone-wrap input {
    padding-left: 90px !important;
}

.fb-phone-wrap input.error,
#regform1 input.error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Registration feed fix */

#registrationFeed {
    height: 165px;
    overflow: hidden;
    position: relative;
    min-height: auto !important;
}

#registrationFeed .feed-item {
    padding: 8px 0;
}

#registrationFeed .feed-left {
    gap: 10px;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e4e6eb;
    flex-shrink: 0;
    background: #f0f2f5;
}

#registrationFeed .feed-pair {
    font-size: 13px;
    line-height: 1.3;
}

#registrationFeed .feed-time {
    font-size: 10px;
    margin-top: 2px;
}

/* Modal animations */

@keyframes overlayFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.overlay-fade-out {
    animation: overlayFadeOut 0.35s ease forwards !important;
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.modal-fade-out {
    animation: modalFadeOut 0.35s ease forwards !important;
}

/* Button loader / spinner */

.btn-submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-logo {
    width: 110px !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.video-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand-sub {
    font-weight: 700;
    font-size: 14px;
    color: #65676b;
    background: #e7f3ff;
    padding: 4px 10px;
    border-radius: 6px;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #42b72a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(66, 183, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0);
    }
}

.online-text {
    color: #65676b;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-none {
    display: none !important;
}

/* Hook container — Facebook dark blue */

.hook-container {
    background: #1877F2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 28px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hook-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hook-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #1c1e21;
}

.subtitle {
    font-size: 15px;
    color: #65676b;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    background: #f0f2f5;
    border: 2px solid #e4e6eb;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    color: #1c1e21;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #8a8d91;
}

.form-group input:focus {
    border-color: #1877F2;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

/* Primary button — Facebook blue */

.btn-submit {
    width: 100%;
    font-family: 'Inter', sans-serif !important;
    background: #1877F2;
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 24px;
    transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-submit:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
    background: #1565d8;
    box-shadow: none;
}

#registrationFeed {
    height: 170px !important;
    overflow: hidden;
    position: relative;
    min-height: unset !important;
}

#registrationFeed .feed-item {
    padding: 10px 0;
    margin: 0;
}

.security-block {
    border-top: 1px solid #e4e6eb;
    padding-top: 24px;
    text-align: center;
}

.security-text {
    font-size: 11px;
    color: #8a8d91;
    margin-bottom: 16px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.payment-logos img {
    height: 24px;
    width: auto;
    opacity: 0.5;
    border-radius: 4px;
    object-fit: contain;
}

.bottom-nav {
    padding: 22px 0 16px 0;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 5px;
}

.links a {
    color: #8a8d91;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dot-sep {
    width: 4px;
    height: 4px;
    background-color: #bec3c9;
    border-radius: 50%;
}

.copy {
    color: #8a8d91;
    font-size: 13px;
}

/* Loader */

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    animation: logoPulse 1.5s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from {
        opacity: 0.6;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1.02);
    }
}

.loader-title {
    font-size: 20px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 8px;
}

.loader-subtitle {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 32px;
    min-height: 20px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e4e6eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #1877F2;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Greeting */

.greeting-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-placeholder {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1877F2, #0866FF);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.greeting-text {
    font-size: 20px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 4px;
}

.greeting-status {
    font-size: 13px;
    color: #42b72a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.greeting-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #42b72a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(66, 183, 42, 0.1);
}

.mini-balance-card {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-balance-label {
    font-size: 14px;
    color: #65676b;
    font-weight: 600;
}

.mini-balance-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1c1e21;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 16px;
}

/* Strategy cards */

.strategy-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.strategy-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.strategy-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.strategy-content {
    background: #ffffff;
    border: 2px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.strategy-card:hover .strategy-content {
    border-color: #bec3c9;
}

.strategy-card input:checked~.strategy-content {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.04);
    box-shadow: 0 0 0 1px #1877F2;
}

.strategy-icon-box {
    width: 48px;
    height: 48px;
    background: #e7f3ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.strategy-icon {
    width: 28px;
    border-radius: 0;
    height: 28px;
    object-fit: contain;
}

.strategy-card input:checked~.strategy-content .strategy-icon-box {}

.strategy-card input:checked~.strategy-content .strategy-icon-box .strategy-icon {}

.strategy-details {
    flex: 1;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #1877F2;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 1;
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.strategy-name {
    font-weight: 800;
    font-size: 16px;
    color: #1c1e21;
}

.strategy-desc {
    font-size: 13px;
    color: #65676b;
    line-height: 1.4;
}

/* Sparkle icon */

.sparkle {
    width: 22px;
    height: 22px;
}

.sparkle .path {
    fill: #ffffff;
    stroke: #ffffff;
    transform-origin: center;
}

.ai-btn:hover .sparkle .path,
.ai-btn:focus .sparkle .path {
    animation: aiPathAnim 1.5s linear 0.5s infinite;
}

.sparkle .path:nth-child(1) {
    --scale_path: 1.2;
}

.sparkle .path:nth-child(2) {
    --scale_path: 1.2;
}

.sparkle .path:nth-child(3) {
    --scale_path: 1.2;
}

@keyframes aiPathAnim {
    0%,
    34%,
    71%,
    100% {
        transform: scale(1);
    }
    17%,
    49%,
    83% {
        transform: scale(var(--scale_path, 1.2));
    }
}

/* Dashboard */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7f3ff;
    color: #1877F2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c7deff;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #42b72a;
    border-radius: 50%;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(66, 183, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 183, 42, 0);
    }
}

.strategy-badge {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Live balance — Facebook gradient */

.live-balance-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #0866FF 100%);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.live-balance-wrapper::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.live-balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.live-balance-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.live-balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
    will-change: contents;
}

.live-profit {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #42b72a;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.live-profit.live-profit--loss {
    background: #fee2e2;
    color: #dc2626;
}

@keyframes profitFlashGreen {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
        background: #5bd443;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes profitFlashRed {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
        background: #fca5a5;
        color: #991b1b;
    }
    100% {
        transform: scale(1);
    }
}

.live-profit.flash-green {
    animation: profitFlashGreen 0.5s ease;
}

.live-profit.flash-red {
    animation: profitFlashRed 0.5s ease;
    background: #fee2e2;
    color: #dc2626;
}

/* Chart */

.custom-chart-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#smoothChart {
    width: 100%;
    height: 100%;
    display: block;
}

/* Stats */

.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
}

.stat-card {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stat-icon--up {
    background: #e6f4ea;
    color: #42b72a;
}

.stat-icon--neutral {
    background: #e7f3ff;
    color: #1877F2;
}

.stat-icon--green {
    background: rgba(66, 183, 42, 0.15);
    color: #2d8a1a;
}

.stat-body {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #1c1e21;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stat-label {
    font-size: 10px;
    color: #8a8d91;
    font-weight: 500;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feed */

.feed-section {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background-color: #16a34a;
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    position: relative;
    min-height: 168px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e4e6eb;
    will-change: transform, opacity;
    transform-origin: top center;
    animation: feedCardDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feed-item.removing {
    animation: feedCardOut 0.3s forwards;
    pointer-events: none;
}

@keyframes feedCardDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feedCardOut {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 56px;
        margin-bottom: 0;
    }
    100% {
        opacity: 0;
        transform: translateX(40px);
        max-height: 0;
        padding: 0;
        border: none;
    }
}

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

.feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
}

.feed-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.feed-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-pair {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
}

.feed-time {
    font-size: 11px;
    color: #8a8d91;
    font-weight: 500;
}

.feed-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.feed-result {
    font-weight: 800;
    font-size: 14px;
    color: #42b72a;
}

.feed-result--loss {
    color: #dc2626;
}

.feed-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e6f4ea;
    color: #42b72a;
}

.feed-type-badge--loss {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 244, 244, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 12px 40px rgba(0, 0, 0, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-align: center;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #e7f3ff;
    color: #1877F2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #1c1e21;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-stats {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-stat-row:last-child {
    margin-bottom: 0;
}

.modal-stat-row span {
    color: #65676b;
}

.modal-stat-row strong {
    color: #1c1e21;
    font-weight: 700;
}

.modal-stat-divider {
    height: 1px;
    background: #e4e6eb;
    margin: 12px 0;
}

.modal-stat-total strong {
    font-size: 24px;
    color: #42b72a;
}

/* Summary hero */

.summary-hero {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #1877F2 0%, #0551b5 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Stats grid */

.stats-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.stat-box {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box-label {
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
}

.stat-box-value {
    font-size: 18px;
    font-weight: 800;
    color: #1c1e21;
}

.text-green {
    color: #42b72a;
}

.text-red {
    color: #dc2626;
}

/* Asset analysis list */

.asset-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 20px;
}

.asset-analysis-list::-webkit-scrollbar {
    width: 4px;
}

.asset-analysis-list::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 4px;
}

.asset-analysis-list::-webkit-scrollbar-thumb {
    background: #bec3c9;
    border-radius: 4px;
}

.sticky-action {
    position: sticky;
    bottom: 10px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 25%);
    padding-top: 24px;
    margin-top: -20px;
    z-index: 10;
}

.sticky-action .btn-submit {
    margin-bottom: 0;
}

.asset-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    padding: 12px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.asset-row:hover {
    transform: translateY(-2px);
    border-color: #bec3c9;
}

.asset-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #e4e6eb;
}

.asset-row-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.asset-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asset-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-row-name {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
}

.asset-row-amount {
    font-size: 14px;
    font-weight: 800;
}

.asset-row-amount.profit {
    color: #42b72a;
}

.asset-row-amount.loss {
    color: #dc2626;
}

.asset-bar-bg {
    width: 100%;
    height: 6px;
    background: #e4e6eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.asset-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.asset-bar-fill.profit {
    background: #42b72a;
}

.asset-bar-fill.loss {
    background: #ef4444;
}

/* Phone input adaptation */

.fb-phone-wrap .iti {
    width: 100%;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

.fb-phone-wrap .iti__flag-container {
    padding-left: 0px;
}

.fb-phone-wrap input {
    padding-left: 90px !important;
}

.fb-phone-wrap input.error,
#regform1 input.error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Registration feed fix */

#registrationFeed {
    height: 165px;
    overflow: hidden;
    position: relative;
    min-height: auto !important;
}

#registrationFeed .feed-item {
    padding: 8px 0;
}

#registrationFeed .feed-left {
    gap: 10px;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e4e6eb;
    flex-shrink: 0;
    background: #f0f2f5;
}

#registrationFeed .feed-pair {
    font-size: 13px;
    line-height: 1.3;
}

#registrationFeed .feed-time {
    font-size: 10px;
    margin-top: 2px;
}

/* Modal animations */

@keyframes overlayFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.overlay-fade-out {
    animation: overlayFadeOut 0.35s ease forwards !important;
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.modal-fade-out {
    animation: modalFadeOut 0.35s ease forwards !important;
}