/* Happy Panda — client account workspace */
.account-shell {
    --admin-primary: #087f8f;
    --admin-primary-hover: #056978;
    --admin-primary-soft: #e8f8fa;
}

.account-shell .sidebar {
    background:
        radial-gradient(circle at 5% 0, rgba(25, 194, 207, .2), transparent 31%),
        radial-gradient(circle at 100% 100%, rgba(114, 87, 207, .12), transparent 37%),
        linear-gradient(180deg, #12213b 0%, #0d192e 100%);
}

.account-shell .account-welcome,
.account-shell .account-page-intro {
    margin-bottom: 1rem;
    border: 1px solid #cde5e8;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background:
        radial-gradient(circle at 86% 10%, rgba(116, 91, 207, .12), transparent 28%),
        linear-gradient(135deg, #edfafa 0%, #fff 68%);
    box-shadow: var(--admin-shadow-sm);
}

.account-shell .account-welcome {
    min-height: 152px;
    padding: 1.45rem 1.55rem;
}

.account-shell .account-page-intro {
    min-height: 112px;
    padding: 1.2rem 1.3rem;
}

.account-shell .account-welcome-copy,
.account-shell .account-page-intro > div {
    min-width: 0;
}

.account-shell .account-kicker {
    margin-bottom: .4rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--admin-primary);
    font-size: .65rem;
    font-weight: 820;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.account-shell .account-welcome h2,
.account-shell .account-page-intro h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 850;
    letter-spacing: -.035em;
}

.account-shell .account-welcome p,
.account-shell .account-page-intro p {
    max-width: 720px;
    margin: .35rem 0 0;
    color: var(--admin-text-soft);
    font-size: .76rem;
    line-height: 1.6;
}

.account-shell .account-primary-action {
    flex: 0 0 auto;
}

.account-shell .account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-shell .account-stats .stat:nth-child(1) { --stat-accent: #0c97a8; }
.account-shell .account-stats .stat:nth-child(2) { --stat-accent: #6e63c9; }
.account-shell .account-stats .stat:nth-child(3) { --stat-accent: #d17422; }

.account-shell .account-stat-caption {
    margin-top: .15rem;
    color: var(--admin-text-muted);
    font-size: .63rem;
}

.account-shell .account-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr);
    gap: 1rem;
}

.account-shell .account-upcoming-card {
    margin: 0;
}

.account-shell .account-text-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 780;
    text-decoration: none;
}

.account-shell .account-record-list {
    display: grid;
}

.account-shell .account-upcoming-item,
.account-shell .account-record {
    min-width: 0;
    border-bottom: 1px solid var(--admin-border);
    display: grid;
    align-items: center;
    color: var(--admin-text);
    text-decoration: none;
}

.account-shell .account-upcoming-item {
    grid-template-columns: 48px minmax(0, 1fr) auto 12px;
    gap: .75rem;
    padding: .72rem .2rem;
}

.account-shell .account-upcoming-item:last-child,
.account-shell .account-record:last-child {
    border-bottom: 0;
}

.account-shell .account-upcoming-item:hover {
    color: var(--admin-text);
}

.account-shell .account-date-tile {
    width: 48px;
    height: 48px;
    border: 1px solid #c5e5e8;
    border-radius: 11px;
    display: grid;
    place-items: center;
    align-content: center;
    background: var(--admin-primary-soft);
    line-height: 1;
}

.account-shell .account-date-tile strong {
    color: var(--admin-primary);
    font-size: 1rem;
    font-weight: 850;
}

.account-shell .account-date-tile small {
    margin-top: .18rem;
    color: #40747b;
    font-size: .56rem;
    font-weight: 800;
}

.account-shell .account-upcoming-copy {
    min-width: 0;
    display: grid;
}

.account-shell .account-upcoming-copy strong {
    overflow: hidden;
    color: var(--admin-text);
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-shell .account-upcoming-copy small {
    margin-top: .22rem;
    overflow: hidden;
    color: var(--admin-text-soft);
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-shell .account-upcoming-copy small i {
    margin-right: .2rem;
    color: var(--admin-primary);
}

.account-shell .account-row-arrow {
    color: #a2afbf;
    font-size: .62rem;
}

.account-shell .account-quick-panel {
    padding: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 15px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-sm);
}

.account-shell .account-quick-panel > h2 {
    margin: 0 0 .75rem;
    color: var(--admin-text);
    font-size: .9rem;
    font-weight: 820;
}

.account-shell .account-quick-link {
    min-height: 62px;
    padding: .65rem .2rem;
    border-bottom: 1px solid var(--admin-border);
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 12px;
    align-items: center;
    gap: .65rem;
    color: var(--admin-text);
    text-decoration: none;
}

.account-shell .account-quick-link:last-child {
    border-bottom: 0;
}

.account-shell .account-quick-link > span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
}

.account-shell .account-quick-link > div {
    min-width: 0;
    display: grid;
}

.account-shell .account-quick-link strong {
    color: var(--admin-text);
    font-size: .71rem;
}

.account-shell .account-quick-link small {
    margin-top: .12rem;
    color: var(--admin-text-soft);
    font-size: .61rem;
}

.account-shell .account-quick-link > i {
    color: #9facbd;
    font-size: .6rem;
}

.account-shell .account-quick-link:hover strong,
.account-shell .account-quick-link:hover > i {
    color: var(--admin-primary);
}

.account-shell .account-tip,
.account-shell .account-security-note {
    margin-top: 1rem;
    padding: .78rem .9rem;
    border: 1px solid #c9dfe9;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    background: #f0f8fc;
    color: #35566a;
}

.account-shell .account-tip > span {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #dceff6;
    color: #28718e;
}

.account-shell .account-tip strong {
    display: block;
    color: #23495e;
    font-size: .72rem;
}

.account-shell .account-tip p,
.account-shell .account-security-note p {
    margin: .12rem 0 0;
    font-size: .66rem;
    line-height: 1.5;
}

.account-shell .account-empty-state {
    min-height: 180px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-soft);
    text-align: center;
}

.account-shell .account-empty-state > span {
    width: 48px;
    height: 48px;
    margin-bottom: .65rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    font-size: 1.15rem;
}

.account-shell .account-empty-state strong {
    color: var(--admin-text);
    font-size: .78rem;
}

.account-shell .account-empty-state p {
    max-width: 360px;
    margin: .25rem 0 .8rem;
    font-size: .66rem;
}

.account-shell .account-list-card {
    padding: 0;
    overflow: hidden;
}

.account-shell .account-record-list {
    padding: 0 1.1rem;
}

.account-shell .account-record {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: .8rem;
    padding: .9rem 0;
}

.account-shell .account-order-record {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
}

.account-shell .account-record-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
}

.account-shell .account-record-main {
    min-width: 0;
}

.account-shell .account-record-title {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.account-shell .account-record-title > strong {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-text);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-shell .account-record-meta {
    margin-top: .38rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    color: var(--admin-text-soft);
    font-size: .64rem;
}

.account-shell .account-record-meta i {
    width: 12px;
    margin-right: .17rem;
    color: #7891a9;
    text-align: center;
}

.account-shell .account-record-action {
    white-space: nowrap;
}

.account-shell .account-order-total {
    min-width: 88px;
    display: grid;
    text-align: right;
}

.account-shell .account-order-total small {
    font-size: .58rem;
    text-transform: uppercase;
}

.account-shell .account-order-total strong {
    color: #116a3d;
    font-size: .85rem;
}

.account-shell .account-pagination {
    border-top: 1px solid var(--admin-border);
}

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

.account-shell .account-form-card {
    margin: 0;
}

.account-shell .account-form-stack {
    display: grid;
    gap: .9rem;
}

.account-shell .account-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.account-shell .account-input-wrap {
    position: relative;
    display: block;
}

.account-shell .account-input-wrap > i {
    position: absolute;
    top: 50%;
    left: .75rem;
    z-index: 1;
    color: #8090a3;
    font-size: .72rem;
    transform: translateY(-50%);
}

.account-shell .account-input-wrap input {
    padding-left: 2.15rem;
}

.account-shell .account-form-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
}

.account-shell .field-error {
    color: var(--admin-red);
}

.account-shell .account-security-note {
    color: #4e6075;
}

.account-shell .account-security-note > i {
    margin-top: .15rem;
    color: var(--admin-primary);
}

@media (max-width: 1100px) {
    .account-shell .account-dashboard-grid,
    .account-shell .account-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .account-shell .account-welcome,
    .account-shell .account-page-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-shell .account-primary-action,
    .account-shell .account-page-intro > .btn {
        width: 100%;
    }

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

    .account-shell .account-upcoming-item {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .account-shell .account-upcoming-item > .badge {
        grid-column: 2;
    }

    .account-shell .account-row-arrow {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .account-shell .account-record,
    .account-shell .account-order-record {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .account-shell .account-record-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-shell .account-order-total {
        grid-column: 2;
        text-align: left;
    }

    .account-shell .account-password-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .account-shell .account-welcome,
    .account-shell .account-page-intro {
        padding: 1.05rem;
    }

    .account-shell .account-record-list {
        padding: 0 .85rem;
    }

    .account-shell .account-record-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-shell .account-record-title > strong {
        white-space: normal;
    }
}
