﻿.activity-count {
    padding: 11px 14px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    border: 1px solid var(--bw-border);
    border-radius: 13px;
    background: var(--bw-surface-soft);
    color: var(--bw-text-muted);
    font-size: 0.66rem;
}

    .activity-count strong {
        color: var(--bw-text);
        font-size: 0.86rem;
    }

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-item {
    position: relative;
    min-height: 112px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 4px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--bw-border);
    border-radius: 18px;
    background: var(--bw-surface-soft);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

    .activity-item:hover {
        color: inherit;
        transform: translateY(-2px);
        border-color: var(--bw-border-strong);
        background: var(--bw-surface-hover);
    }

.activity-date {
    width: 46px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(82, 107, 240, 0.09);
}

    .activity-date span {
        color: #8498ff;
        font-size: 0.49rem;
        font-weight: 800;
    }

    .activity-date strong {
        margin-top: 2px;
        color: var(--bw-text-secondary);
        font-size: 0.82rem;
    }

.activity-indicator {
    align-self: stretch;
    min-height: 58px;
    border-radius: 99px;
}

    .activity-indicator.increase {
        background: #d8665f;
    }

    .activity-indicator.decrease {
        background: #45ae77;
    }

    .activity-indicator.steady {
        background: #667489;
    }

.activity-copy {
    min-width: 0;
}

.activity-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

    .activity-heading > div:first-child,
    .activity-money {
        display: flex;
        flex-direction: column;
    }

    .activity-heading strong {
        color: var(--bw-text);
        font-size: 0.8rem;
    }

    .activity-heading > div:first-child span {
        margin-top: 3px;
        color: var(--bw-text-subtle);
        font-size: 0.59rem;
    }

.activity-money {
    align-items: flex-end;
}

    .activity-money strong {
        font-size: 0.78rem;
    }

.activity-amount.increase {
    color: #e2746c;
}

.activity-amount.decrease {
    color: #49b87d;
}

.activity-amount.steady {
    color: var(--bw-text-secondary);
}

.activity-money span {
    margin-top: 3px;
    color: var(--bw-text-subtle);
    font-size: 0.56rem;
}

.activity-copy p {
    max-width: 850px;
    margin: 10px 0;
    color: var(--bw-text-muted);
    font-size: 0.69rem;
    line-height: 1.55;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .activity-meta span {
        padding: 4px 7px;
        border-radius: 7px;
        background: rgba(100, 120, 170, 0.065);
        color: var(--bw-text-muted);
        font-size: 0.53rem;
    }

.activity-arrow {
    color: #8297ff;
    font-size: 0.9rem;
}

.activity-empty {
    min-height: 390px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bw-border);
    border-radius: 22px;
    background: var(--bw-surface-soft);
    text-align: center;
}

.activity-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(54, 181, 117, 0.09);
    color: #48b77d;
}

    .activity-empty-icon svg {
        width: 25px;
        height: 25px;
    }

.activity-empty h2 {
    margin: 10px 0 8px;
    color: var(--bw-text);
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.activity-empty p {
    max-width: 500px;
    margin: 0;
    color: var(--bw-text-muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.activity-skeleton {
    position: relative;
    overflow: hidden;
    height: 112px;
    border: 1px solid var(--bw-border);
    border-radius: 18px;
    background: var(--bw-surface-soft);
}


/* Account */

.account-identity-card {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--bw-border);
    border-radius: 18px;
    background: var(--bw-surface-soft);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.05);
}

.identity-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient( 145deg, rgba(78, 104, 239, 0.18), rgba(78, 104, 239, 0.08));
    color: #899cff;
    font-size: 0.8rem;
    font-weight: 800;
}

.identity-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .identity-copy span {
        color: var(--bw-text-subtle);
        font-size: 0.58rem;
    }

    .identity-copy strong {
        overflow: hidden;
        margin-top: 3px;
        color: var(--bw-text-secondary);
        font-size: 0.76rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.identity-security {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--bw-text-muted);
    font-size: 0.62rem;
}

.security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38b878;
    box-shadow: 0 0 0 4px rgba(56, 184, 120, 0.1);
}

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

.account-panel {
    min-height: 330px;
    padding: 23px;
    border: 1px solid var(--bw-border);
    border-radius: 20px;
    background: var(--bw-surface-soft);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.055);
}

.account-panel-heading {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

    .account-panel-heading h2 {
        margin: 5px 0 0;
        color: var(--bw-text);
        font-size: 1rem;
        letter-spacing: -0.035em;
    }

.account-count {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(100, 120, 170, 0.08);
    color: var(--bw-text-muted);
    font-size: 0.61rem;
    font-weight: 750;
}

.connection-list,
.financial-account-list {
    display: grid;
}

.connection-row,
.financial-account-row {
    min-height: 72px;
    padding: 10px 2px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--bw-border);
}

.connection-logo,
.financial-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(81, 106, 239, 0.1);
    color: #8498ff;
    font-size: 0.72rem;
    font-weight: 800;
}

.connection-copy,
.financial-account-copy,
.financial-account-meta,
.connection-status {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .connection-copy strong,
    .financial-account-copy strong {
        overflow: hidden;
        color: var(--bw-text-secondary);
        font-size: 0.71rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .connection-copy span,
    .financial-account-copy span {
        margin-top: 3px;
        color: var(--bw-text-subtle);
        font-size: 0.57rem;
    }

.connection-status,
.financial-account-meta {
    align-items: flex-end;
}

.connection-pill {
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 750;
}

    .connection-pill.active {
        background: rgba(53, 181, 116, 0.1);
        color: #49b87d;
    }

    .connection-pill.attention {
        background: rgba(224, 161, 58, 0.11);
        color: #d3a047;
    }

    .connection-pill.disconnected {
        background: rgba(218, 77, 70, 0.1);
        color: #dd6b64;
    }

    .connection-pill.unknown {
        background: rgba(100, 120, 170, 0.08);
        color: var(--bw-text-muted);
    }

.connection-status small {
    margin-top: 5px;
    color: var(--bw-text-subtle);
    font-size: 0.5rem;
}

.financial-account-meta strong {
    color: var(--bw-text-secondary);
    font-size: 0.61rem;
}

.financial-account-meta span {
    margin-top: 4px;
    color: var(--bw-text-subtle);
    font-size: 0.57rem;
}

.account-empty {
    min-height: 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.account-empty-icon {
    width: 49px;
    height: 49px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(81, 106, 239, 0.09);
    color: #8498ff;
}

    .account-empty-icon svg {
        width: 22px;
        height: 22px;
    }

.account-empty strong {
    color: var(--bw-text-secondary);
    font-size: 0.75rem;
}

.account-empty span {
    max-width: 330px;
    margin-top: 7px;
    color: var(--bw-text-muted);
    font-size: 0.64rem;
    line-height: 1.55;
}

.privacy-panel {
    padding: 29px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--bw-border);
    border-radius: 21px;
    background: linear-gradient( 145deg, rgba(76, 101, 230, 0.07), var(--bw-surface-soft));
}

.privacy-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(81, 106, 239, 0.11);
    color: #8498ff;
}

    .privacy-icon svg {
        width: 25px;
        height: 25px;
    }

.privacy-copy h2 {
    margin: 6px 0 7px;
    color: var(--bw-text);
    font-size: 1.05rem;
    letter-spacing: -0.035em;
}

.privacy-copy p {
    max-width: 610px;
    margin: 0;
    color: var(--bw-text-muted);
    font-size: 0.68rem;
    line-height: 1.58;
}

.privacy-points {
    display: grid;
    gap: 9px;
}

    .privacy-points div {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--bw-text-muted);
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .privacy-points span {
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(53, 181, 116, 0.1);
        color: #49b87d;
        font-size: 0.58rem;
    }

.account-skeleton {
    position: relative;
    overflow: hidden;
}

    .activity-skeleton::after,
    .account-skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent, rgba(130, 150, 200, 0.07), transparent);
        animation: account-shimmer 1.5s infinite;
    }

@keyframes account-shimmer {
    100% {
        transform: translateX(100%);
    }
}

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

    .privacy-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .privacy-points {
        grid-column: 2;
    }
}

@media (max-width: 700px) {
    .activity-count {
        display: none;
    }

    .activity-item {
        grid-template-columns: auto 4px minmax(0, 1fr);
    }

    .activity-arrow {
        display: none;
    }

    .activity-heading {
        flex-direction: column;
        gap: 7px;
    }

    .activity-money {
        align-items: flex-start;
    }

    .account-identity-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .identity-security {
        grid-column: 2;
    }

    .privacy-panel {
        grid-template-columns: 1fr;
    }

    .privacy-points {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .activity-item {
        padding: 15px 13px;
        gap: 11px;
    }

    .activity-date {
        width: 40px;
        height: 45px;
    }

    .account-panel {
        padding: 18px;
    }

    .connection-row,
    .financial-account-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .connection-status,
    .financial-account-meta {
        grid-column: 2;
        align-items: flex-start;
        margin-top: -5px;
    }

    .privacy-panel {
        padding: 23px;
    }
}
