/* Layout dimensions; theme colors live in yascash-theme.css */
:root {
    --yc-sidebar-width: 270px;
    --yc-header-height: 76px;
}

* {
    box-sizing: border-box;
}


html {
    background: var(--yc-bg);
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 14% 7%,
            color-mix(in srgb, var(--yc-blue) 8%, transparent),
            transparent 24%
        ),
        var(--yc-bg);

    color: var(--yc-text);

    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   Main customer/admin shell
   ========================================================= */

.yc-shell {
    min-height: 100vh;
}


.yc-sidebar {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    width: var(--yc-sidebar-width);

    z-index: 1100;

    display: flex;
    flex-direction: column;

    padding: 22px 16px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #0a1d35,
            #0c2748
        );

    box-shadow:
        -15px 0 45px
        rgba(3, 15, 28, .16);

    overflow-y: auto;
}


.yc-sidebar.admin {
    background:
        linear-gradient(
            180deg,
            #08182d,
            #122b4c
        );
}


.yc-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    padding:
        4px 7px 23px;
}


.yc-brand.public {
    padding: 0;
    color: var(--yc-text);
}


.yc-brand-mark {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #518cff,
            #265bd0
        );

    color: white;

    font-weight: 900;

    box-shadow:
        0 12px 28px
        rgba(47, 111, 237, .28);
}


.yc-brand strong,
.yc-brand span {
    display: block;
}


.yc-brand strong {
    font-size: 1.08rem;
}


.yc-brand span {
    margin-top: 3px;

    color:
        rgba(255, 255, 255, .56);

    font-size: .71rem;
}


.yc-brand.public span {
    color: var(--yc-text-soft);
}


.yc-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.yc-nav-title {
    margin:
        17px 11px 7px;

    color:
        rgba(255, 255, 255, .42);

    font-size: .7rem;
}


.yc-nav-item {
    min-height: 47px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding:
        0 13px;

    border-radius: 13px;

    color:
        rgba(255, 255, 255, .82);

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}


.yc-nav-item:hover {
    transform:
        translateX(-3px);

    color: white;

    background:
        rgba(255, 255, 255, .1);
}


.yc-nav-item > span {
    width: 25px;

    text-align: center;
}


.yc-nav-item small {
    margin-right: auto;

    padding:
        4px 7px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .08);

    color:
        rgba(255, 255, 255, .5);

    font-size: .62rem;
}


.yc-nav-disabled {
    opacity: .55;
}


.yc-nav-disabled:hover {
    transform: none;

    background: transparent;
}


.yc-sidebar-bottom {
    margin-top: auto;

    padding-top: 18px;
}


.yc-user-mini {
    display: flex;
    align-items: center;
    gap: 10px;

    padding:
        12px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, .05);
}


.yc-user-mini strong,
.yc-user-mini span {
    display: block;
}


.yc-user-mini strong {
    font-size: .8rem;
}


.yc-user-mini span {
    margin-top: 3px;

    color:
        rgba(255, 255, 255, .52);

    font-size: .68rem;
}


.yc-user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .12);

    color: white;

    font-weight: 900;
}


.yc-user-avatar.small {
    width: 36px;
    height: 36px;

    color: var(--yc-blue);

    background: var(--yc-blue-soft);
}


.yc-logout-button {
    width: 100%;
    min-height: 41px;

    margin-top: 9px;

    border:
        1px solid
        rgba(255, 255, 255, .09);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, .04);

    color:
        rgba(255, 255, 255, .76);

    cursor: pointer;

    transition:
        background-color 180ms ease;
}


.yc-logout-button:hover {
    background:
        rgba(255, 255, 255, .1);
}


.yc-main {
    min-height: 100vh;

    margin-right:
        var(--yc-sidebar-width);
}


.yc-header {
    position: sticky;

    top: 0;

    z-index: 900;

    min-height:
        var(--yc-header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding:
        12px 30px;

    border-bottom:
        1px solid
        var(--yc-border);

    background:
        color-mix(
            in srgb,
            var(--yc-surface) 90%,
            transparent
        );

    backdrop-filter:
        blur(18px);
}


.yc-header-start,
.yc-header-actions,
.yc-header-user {
    display: flex;
    align-items: center;
}


.yc-header-start {
    gap: 11px;
}


.yc-header-start strong,
.yc-header-start span,
.yc-header-user strong,
.yc-header-user span {
    display: block;
}


.yc-header-start span,
.yc-header-user span {
    margin-top: 3px;

    color:
        var(--yc-text-soft);

    font-size: .7rem;
}


.yc-header-actions {
    gap: 10px;
}


.yc-header-user {
    gap: 9px;

    padding:
        5px 9px;

    border:
        1px solid
        var(--yc-border);

    border-radius: 14px;

    background:
        var(--yc-surface);
}


.yc-header-user strong {
    font-size: .78rem;
}


.yc-icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid
        var(--yc-border);

    border-radius: 13px;

    background:
        var(--yc-surface);

    color:
        var(--yc-text);

    cursor: pointer;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}


.yc-icon-button:hover {
    transform:
        translateY(-2px);

    border-color:
        var(--yc-blue);

    box-shadow:
        var(--yc-shadow);
}


.yc-menu-button {
    display: none;
}


.yc-content {
    padding:
        28px 30px 48px;
}


.yc-sidebar-overlay {
    position: fixed;

    inset: 0;

    z-index: 1050;

    visibility: hidden;

    opacity: 0;

    background:
        rgba(0, 0, 0, .42);

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}


/* =========================================================
   Generic customer components
   ========================================================= */

.yc-page {
    max-width: 1240px;

    margin: 0 auto;

    animation:
        ycPageEnter
        420ms
        cubic-bezier(.2, .8, .2, 1)
        both;
}


@keyframes ycPageEnter {
    from {
        opacity: 0;

        transform:
            translateY(13px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.yc-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 20px;
}


.yc-page-heading h1 {
    margin: 0;

    font-size:
        clamp(
            1.65rem,
            3vw,
            2.2rem
        );
}


.yc-page-heading p {
    margin:
        7px 0 0;

    color:
        var(--yc-text-soft);
}


.yc-eyebrow {
    margin-bottom: 6px;

    color:
        var(--yc-blue);

    font-size: .74rem;

    font-weight: 900;
}


.yc-card {
    border:
        1px solid
        var(--yc-border);

    border-radius: 20px;

    background:
        var(--yc-surface);

    box-shadow:
        var(--yc-shadow);
}


.yc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding:
        19px 20px;

    border-bottom:
        1px solid
        var(--yc-border);
}


.yc-card-header h2 {
    margin: 0;

    font-size: 1rem;
}


.yc-card-header p {
    margin:
        5px 0 0;

    color:
        var(--yc-text-soft);

    font-size: .75rem;
}


.yc-primary-button,
.yc-secondary-button,
.yc-danger-button,
.yc-small-button {
    min-height: 42px;

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

    padding:
        0 15px;

    border: none;

    border-radius: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.yc-primary-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            #2f6fed,
            #205acb
        );

    box-shadow:
        0 9px 24px
        rgba(47, 111, 237, .2);
}


.yc-secondary-button,
.yc-small-button {
    color: var(--yc-text);

    background:
        var(--yc-surface-2);

    border:
        1px solid
        var(--yc-border);
}


.yc-danger-button {
    color: white;

    background:
        var(--yc-red);
}


.yc-primary-button:hover,
.yc-secondary-button:hover,
.yc-danger-button:hover,
.yc-small-button:hover {
    transform:
        translateY(-2px);
}


.yc-small-button {
    min-height: 34px;

    padding:
        0 11px;

    font-size: .75rem;
}


.yc-form {
    display: grid;
    gap: 15px;

    padding: 22px;
}


.yc-form.two-columns {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


.yc-field {
    display: grid;
    gap: 7px;
}


.yc-field.full {
    grid-column:
        1 / -1;
}


.yc-field label {
    font-size: .77rem;

    font-weight: 800;
}


.yc-input {
    width: 100%;

    min-height: 44px;

    padding:
        10px 12px;

    border:
        1px solid
        var(--yc-border);

    border-radius: 12px;

    outline: none;

    color:
        var(--yc-text);

    background:
        var(--yc-surface-2);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}


.yc-input:focus {
    border-color:
        var(--yc-blue);

    background:
        var(--yc-surface);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--yc-blue) 12%,
            transparent
        );
}


textarea.yc-input {
    min-height: 110px;

    resize: vertical;
}


.yc-error {
    color:
        var(--yc-red);

    font-size: .72rem;
}


.yc-form-actions {
    grid-column:
        1 / -1;

    display: flex;
    gap: 8px;

    padding-top: 4px;
}


.yc-table-wrap {
    width: 100%;

    overflow-x: auto;
}


.yc-table {
    width: 100%;

    min-width: 850px;

    border-collapse: collapse;
}


.yc-table th,
.yc-table td {
    padding:
        14px 16px;

    text-align: right;

    border-bottom:
        1px solid
        var(--yc-border);

    vertical-align: middle;

    font-size: .82rem;
}


.yc-table th {
    color:
        var(--yc-text-soft);

    background:
        var(--yc-surface-2);

    font-size: .72rem;
}


.yc-table tbody tr:hover {
    background:
        var(--yc-surface-2);
}


.yc-table tbody tr:last-child td {
    border-bottom: 0;
}


.yc-status {
    display: inline-flex;

    padding:
        6px 9px;

    border-radius: 999px;

    font-size: .7rem;

    font-weight: 900;
}


.yc-status.active,
.yc-status.income {
    color:
        var(--yc-green);

    background:
        var(--yc-green-soft);
}


.yc-status.inactive,
.yc-status.expense {
    color:
        var(--yc-red);

    background:
        var(--yc-red-soft);
}


.yc-status.transfer {
    color:
        var(--yc-blue);

    background:
        var(--yc-blue-soft);
}


/* =========================================================
   Dashboard
   ========================================================= */

.yc-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}


.yc-stat-card {
    padding: 18px;

    border:
        1px solid
        var(--yc-border);

    border-radius: 18px;

    background:
        var(--yc-surface);

    box-shadow:
        var(--yc-shadow);

    transition:
        transform 180ms ease;
}


.yc-stat-card:hover {
    transform:
        translateY(-3px);
}


.yc-stat-label {
    color:
        var(--yc-text-soft);

    font-size: .74rem;
}


.yc-stat-value {
    margin-top: 7px;

    font-size: 1.65rem;

    font-weight: 900;
}


.yc-dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, .75fr);

    gap: 17px;

    margin-bottom: 17px;
}


.yc-list {
    display: grid;

    padding: 5px 20px;
}


.yc-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding:
        14px 0;

    border-bottom:
        1px solid
        var(--yc-border);
}


.yc-list-row:last-child {
    border-bottom: 0;
}


.yc-list-row span {
    color:
        var(--yc-text-soft);

    font-size: .76rem;
}


.yc-progress-item {
    padding:
        14px 20px;

    border-bottom:
        1px solid
        var(--yc-border);
}


.yc-progress-item:last-child {
    border-bottom: 0;
}


.yc-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}


.yc-progress-head span {
    color:
        var(--yc-text-soft);

    font-size: .72rem;
}


.yc-progress-track {
    height: 8px;

    margin-top: 10px;

    overflow: hidden;

    border-radius: 999px;

    background:
        var(--yc-surface-3);
}


.yc-progress-fill {
    height: 100%;

    border-radius: 999px;

    background:
        var(--yc-blue);
}


.yc-progress-fill.over {
    background:
        var(--yc-red);
}


/* =========================================================
   Login / public
   ========================================================= */

.yc-public-body {
    min-height: 100vh;
}


.yc-public-header {
    min-height: 72px;

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

    padding:
        11px
        max(
            18px,
            calc(
                (100% - 1180px) / 2
            )
        );

    border-bottom:
        1px solid
        var(--yc-border);

    background:
        color-mix(
            in srgb,
            var(--yc-surface) 92%,
            transparent
        );

    backdrop-filter:
        blur(16px);
}


.yc-public-content {
    padding:
        26px 18px 50px;
}


.yc-login-shell {
    width:
        min(
            1040px,
            100%
        );

    min-height: 600px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    margin:
        30px auto;

    overflow: hidden;

    border:
        1px solid
        var(--yc-border);

    border-radius: 28px;

    background:
        var(--yc-surface);

    box-shadow:
        0 30px 90px
        rgba(17, 31, 58, .14);

    animation:
        ycLoginEnter
        550ms
        cubic-bezier(.2, .8, .2, 1)
        both;
}


@keyframes ycLoginEnter {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.yc-login-art {
    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 34px;

    color: white;

    background:
        linear-gradient(
            150deg,
            #07182d,
            #123d70
        );
}


.yc-login-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    animation:
        ycFloat
        7s
        ease-in-out
        infinite;
}


.yc-login-orb.one {
    width: 240px;
    height: 240px;

    top: -65px;
    left: -35px;

    background:
        rgba(77, 138, 255, .26);
}


.yc-login-orb.two {
    width: 150px;
    height: 150px;

    top: 150px;
    right: -45px;

    background:
        rgba(72, 215, 172, .16);

    animation-delay:
        -2s;
}


@keyframes ycFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(18px);
    }
}


.yc-login-art h2 {
    position: relative;

    margin: 0;

    font-size: 2rem;
}


.yc-login-art p {
    position: relative;

    max-width: 420px;

    margin:
        12px 0 0;

    color:
        rgba(255, 255, 255, .7);

    line-height: 1.9;
}


.yc-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        40px;
}


.yc-login-panel h1 {
    margin: 0;

    font-size: 1.9rem;
}


.yc-login-panel > p {
    margin:
        8px 0 24px;

    color:
        var(--yc-text-soft);
}


.yc-login-form {
    display: grid;
    gap: 15px;
}


.yc-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;

    color:
        var(--yc-text-soft);

    font-size: .78rem;
}


.yc-login-button {
    min-height: 48px;

    border: none;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2f6fed,
            #1f58c8
        );

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(47, 111, 237, .24);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.yc-login-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 16px 34px
        rgba(47, 111, 237, .3);
}


.yc-invite-box {
    margin-bottom: 18px;

    padding: 16px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--yc-green) 25%,
            var(--yc-border)
        );

    border-radius: 15px;

    background:
        var(--yc-green-soft);
}


.yc-invite-box strong,
.yc-invite-box span {
    display: block;
}


.yc-invite-box span {
    margin-top: 5px;

    color:
        var(--yc-text-soft);

    font-size: .74rem;
    word-break: break-all;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1050px) {
    .yc-stats-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .yc-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .yc-sidebar {
        transform:
            translateX(105%);

        transition:
            transform 240ms
            cubic-bezier(.2, .8, .2, 1);
    }

    body.yc-sidebar-open
    .yc-sidebar {
        transform:
            translateX(0);
    }

    body.yc-sidebar-open
    .yc-sidebar-overlay {
        visibility: visible;

        opacity: 1;
    }

    .yc-main {
        margin-right: 0;
    }

    .yc-menu-button {
        display: grid;
    }

    .yc-content {
        padding:
            22px 18px 40px;
    }

    .yc-header {
        padding:
            12px 18px;
    }

    .yc-header-user > div:last-child {
        display: none;
    }

    .yc-login-shell {
        grid-template-columns: 1fr;

        max-width: 620px;
    }

    .yc-login-art {
        min-height: 230px;
    }
}


@media (max-width: 650px) {
    .yc-page-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .yc-page-heading
    .yc-primary-button,
    .yc-page-heading
    .yc-secondary-button {
        width: 100%;
    }

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

    .yc-form.two-columns {
        grid-template-columns: 1fr;
    }

    .yc-field.full,
    .yc-form-actions {
        grid-column: auto;
    }

    .yc-form-actions {
        flex-direction: column;
    }

    .yc-form-actions
    .yc-primary-button,
    .yc-form-actions
    .yc-secondary-button {
        width: 100%;
    }

    .yc-login-panel {
        padding:
            28px 20px;
    }

    .yc-login-art {
        padding:
            26px 20px;
    }
}

/* =========================================================
   YasCash Visual Identity v3
   Logo / User Photo / Search / Collapsible Sidebar / Live UI
   ========================================================= */

.yc-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 58px;
}

.yc-sidebar-head .yc-brand {
    min-width: 0;
    flex: 1;
    padding-bottom: 8px;
}

.yc-site-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.yc-brand.public .yc-site-logo {
    box-shadow: var(--yc-shadow);
}

.yc-brand-copy {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.yc-sidebar-collapse-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    transition: 180ms ease;
}

.yc-sidebar-collapse-button:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-1px);
}

.yc-nav-icon {
    width: 26px !important;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
}

.yc-nav-label,
.yc-nav-soon,
.yc-user-mini-copy,
.yc-logout-label,
.yc-brand-copy {
    transition:
        opacity 130ms ease,
        width 180ms ease;
}

.yc-user-photo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.14);
    background: var(--yc-surface-2);
}

.yc-user-photo.small {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-color: var(--yc-border);
}

.yc-live-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--yc-green) 20%, var(--yc-border));
    border-radius: 999px;
    color: var(--yc-green);
    background: var(--yc-green-soft);
    font-size: .72rem;
    font-weight: 800;
}

.yc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yc-green);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--yc-green) 40%, transparent);
    animation: ycLivePulse 1.8s infinite;
}

@keyframes ycLivePulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--yc-green) 38%, transparent);
    }

    70% {
        box-shadow: 0 0 0 8px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.yc-search-card {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--yc-border);
    border-radius: 15px;
    background: var(--yc-surface);
    box-shadow: 0 8px 25px rgba(17,31,58,.05);
}

.yc-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yc-search-input-wrap {
    position: relative;
    flex: 1;
}

.yc-search-icon {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: var(--yc-text-soft);
    pointer-events: none;
}

.yc-search-input {
    padding-right: 38px;
}

.yc-search-button,
.yc-search-clear {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.yc-search-button {
    border: none;
    color: #fff;
    background: var(--yc-blue);
}

.yc-search-clear {
    border: 1px solid var(--yc-border);
    color: var(--yc-text-soft);
    background: var(--yc-surface-2);
}

.yc-profile-upload {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid var(--yc-border);
    border-radius: 14px;
    background: var(--yc-surface-2);
}

.yc-profile-preview {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--yc-border);
    background: var(--yc-surface);
}

.yc-profile-preview:not(.has-image) {
    opacity: .65;
}

.yc-dashboard-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 17px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--yc-blue) 18%, var(--yc-border));
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 20%, rgba(47,111,237,.15), transparent 30%),
        linear-gradient(135deg, var(--yc-surface), var(--yc-surface-2));
    box-shadow: var(--yc-shadow);
}

.yc-dashboard-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -110px;
    bottom: -160px;
    border-radius: 50%;
    background: rgba(47,111,237,.08);
    animation: ycHeroFloat 7s ease-in-out infinite;
}

@keyframes ycHeroFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-18px) scale(1.05);
    }
}

.yc-dashboard-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.yc-dashboard-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.yc-dashboard-hero p {
    margin: 8px 0 0;
    color: var(--yc-text-soft);
}

.yc-quick-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.yc-quick-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--yc-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--yc-surface) 82%, transparent);
    backdrop-filter: blur(10px);
    font-size: .75rem;
    font-weight: 800;
    transition: 180ms ease;
}

.yc-quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--yc-blue);
}

.yc-stat-card {
    position: relative;
    overflow: hidden;
}

.yc-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--yc-blue);
    opacity: .75;
}

.yc-stat-value {
    font-variant-numeric: tabular-nums;
}

.yc-mini-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 13px;
}

.yc-mini-meta {
    padding: 11px;
    border-radius: 12px;
    background: var(--yc-surface-2);
}

.yc-mini-meta span,
.yc-mini-meta strong {
    display: block;
}

.yc-mini-meta span {
    color: var(--yc-text-soft);
    font-size: .68rem;
}

.yc-mini-meta strong {
    margin-top: 4px;
}

/* Desktop collapsed sidebar */
@media (min-width: 901px) {
    html[data-sidebar="collapsed"] .yc-sidebar {
        width: 84px;
        padding-left: 11px;
        padding-right: 11px;
    }

    html[data-sidebar="collapsed"] .yc-main {
        margin-right: 84px;
    }

    html[data-sidebar="collapsed"] .yc-brand-copy,
    html[data-sidebar="collapsed"] .yc-nav-title,
    html[data-sidebar="collapsed"] .yc-nav-label,
    html[data-sidebar="collapsed"] .yc-nav-soon,
    html[data-sidebar="collapsed"] .yc-user-mini-copy,
    html[data-sidebar="collapsed"] .yc-logout-label {
        display: none;
    }

    html[data-sidebar="collapsed"] .yc-sidebar-head {
        flex-direction: column;
    }

    html[data-sidebar="collapsed"] .yc-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    html[data-sidebar="collapsed"] .yc-nav-item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    html[data-sidebar="collapsed"] .yc-nav-icon {
        width: 100% !important;
    }

    html[data-sidebar="collapsed"] .yc-user-mini {
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
    }

    html[data-sidebar="collapsed"] .yc-logout-button {
        padding: 0;
    }
}

@media (max-width: 700px) {
    .yc-search-form {
        flex-wrap: wrap;
    }

    .yc-search-input-wrap {
        flex-basis: 100%;
    }

    .yc-search-button,
    .yc-search-clear {
        flex: 1;
    }

    .yc-dashboard-hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .yc-mini-meta-grid {
        grid-template-columns: 1fr;
    }

    .yc-live-chip {
        display: none;
    }
}

.yc-subscription-badge {
    min-width: 180px;
    padding: 14px;
    border: 1px solid var(--yc-border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--yc-surface) 85%, transparent);
    backdrop-filter: blur(10px);
}

.yc-subscription-badge span,
.yc-subscription-badge strong,
.yc-subscription-badge small {
    display: block;
}

.yc-subscription-badge span,
.yc-subscription-badge small {
    color: var(--yc-text-soft);
    font-size: .7rem;
}

.yc-subscription-badge strong {
    margin: 5px 0;
}

.yc-budget-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--yc-red) 22%, var(--yc-border));
    border-radius: 14px;
    color: var(--yc-red);
    background: var(--yc-red-soft);
}

.yc-budget-alert-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--yc-red);
    font-weight: 900;
}

.yc-budget-alert strong,
.yc-budget-alert span {
    display: block;
}

.yc-budget-alert span {
    margin-top: 3px;
    color: var(--yc-text-soft);
    font-size: .72rem;
}

.yc-stat-foot {
    margin-top: 8px;
    color: var(--yc-text-soft);
    font-size: .68rem;
}

.yc-stat-card.success-card::before {
    background: var(--yc-green);
}

.yc-stat-card.danger-card::before {
    background: var(--yc-red);
}

.yc-stat-card.net-card::before {
    background: var(--yc-orange);
}

.yc-table-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.yc-login-brand-art {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: auto;
}

.yc-login-brand-art img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.yc-login-brand-art strong,
.yc-login-brand-art span {
    display: block;
}

.yc-login-brand-art strong {
    font-size: 1.15rem;
}

.yc-login-brand-art span {
    margin-top: 4px;
    color: rgba(255,255,255,.60);
    font-size: .72rem;
}

.yc-login-live-line {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255,255,255,.75);
    font-size: .75rem;
}

.yc-login-logo-mobile {
    display: none;
    margin-bottom: 17px;
}

.yc-login-logo-mobile img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--yc-shadow);
}

@media (max-width: 900px) {
    .yc-login-brand-art {
        margin-bottom: 40px;
    }
}

@media (max-width: 650px) {
    .yc-login-art {
        display: none;
    }

    .yc-login-logo-mobile {
        display: block;
    }
}
/* =========================================================
   Transactions / Accounts update
   ========================================================= */

.yc-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--yc-border);
    font-size: .8rem;
    font-weight: 800;
}

.yc-alert.success {
    color: var(--yc-green);
    background: var(--yc-green-soft);
    border-color:
        color-mix(
            in srgb,
            var(--yc-green) 24%,
            var(--yc-border)
        );
}

.yc-alert.error {
    color: var(--yc-red);
    background: var(--yc-red-soft);
    border-color:
        color-mix(
            in srgb,
            var(--yc-red) 24%,
            var(--yc-border)
        );
}

.yc-filter-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--yc-border);
    border-radius: 18px;
    background: var(--yc-surface);
    box-shadow: var(--yc-shadow);
}

.yc-transaction-filter {
    display: grid;
    grid-template-columns:
        145px
        150px
        150px
        minmax(180px, 1fr)
        minmax(170px, 1fr)
        minmax(190px, 1fr);
    gap: 11px;
    align-items: end;
}

.yc-filter-search-wide {
    grid-column: span 2;
}

.yc-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 1px;
}

.yc-filter-apply,
.yc-filter-clear {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.yc-filter-apply {
    border: none;
    color: #fff;
    background: var(--yc-blue);
}

.yc-filter-clear {
    border: 1px solid var(--yc-border);
    color: var(--yc-text-soft);
    background: var(--yc-surface-2);
}

.yc-compact-search {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: .73rem;
}

.yc-multi-select {
    position: relative;
}

.yc-multi-select summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--yc-border);
    border-radius: 12px;
    color: var(--yc-text);
    background: var(--yc-surface-2);
    cursor: pointer;
    list-style: none;
}

.yc-multi-select summary::-webkit-details-marker {
    display: none;
}

.yc-multi-select summary::after {
    content: "⌄";
    margin-right: auto;
    color: var(--yc-text-soft);
}

.yc-multi-select-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 1400;
    min-width: 260px;
    padding: 10px;
    border: 1px solid var(--yc-border);
    border-radius: 14px;
    background: var(--yc-surface);
    box-shadow:
        0 20px 50px
        rgba(5, 16, 31, .16);
}

.yc-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    display: grid;
    gap: 3px;
}

.yc-checkbox-list label {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 9px;
    cursor: pointer;
    font-size: .76rem;
}

.yc-checkbox-list label:hover {
    background: var(--yc-surface-2);
}

.yc-transaction-table {
    min-width: 1450px;
}

.yc-audit-cell {
    min-width: 130px;
}

.yc-audit-cell strong,
.yc-audit-cell span {
    display: block;
}

.yc-audit-cell span {
    margin-top: 3px;
    color: var(--yc-text-soft);
    font-size: .67rem;
}

.yc-muted {
    color: var(--yc-text-soft);
    font-size: .72rem;
}

.yc-notes-cell {
    max-width: 230px;
    white-space: normal;
    line-height: 1.6;
}

.yc-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.yc-row-actions form {
    margin: 0;
}

.yc-small-danger-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid
        color-mix(
            in srgb,
            var(--yc-red) 26%,
            var(--yc-border)
        );
    border-radius: 10px;
    color: var(--yc-red);
    background: var(--yc-red-soft);
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease;
}

.yc-small-danger-button:hover {
    transform: translateY(-2px);
    border-color: var(--yc-red);
}

.yc-empty-state {
    padding: 44px 20px;
    text-align: center;
    color: var(--yc-text-soft);
}

@media (max-width: 1220px) {
    .yc-transaction-filter {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .yc-filter-search-wide {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {
    .yc-transaction-filter {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .yc-filter-search-wide {
        grid-column: 1 / -1;
    }

    .yc-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .yc-transaction-filter {
        grid-template-columns: 1fr;
    }

    .yc-filter-search-wide,
    .yc-filter-actions {
        grid-column: auto;
    }

    .yc-filter-actions {
        align-items: stretch;
    }

    .yc-filter-apply,
    .yc-filter-clear {
        flex: 1;
    }

    .yc-row-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
