.profile-dashboard {
    padding-top: 28px;
    padding-bottom: 70px;
}

.profile-dashboard__shell {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-dashboard__sidebar {
    position: sticky;
    top: 110px;
    min-width: 0;
}

.profile-dashboard__identity {
    padding: 24px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.profile-dashboard__avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.profile-dashboard .avatar_thumbnail {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.profile-dashboard .avatar_edit {
    top: 0;
    right: 0;
}

.profile-dashboard__name {
    margin: 0;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-dashboard__contact {
    margin-top: 7px;
    overflow: hidden;
    color: #888;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dashboard__identity-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.profile-dashboard__identity-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s;
}

.profile-dashboard__identity-action:hover {
    border-color: #b43084;
    color: #b43084;
}

.profile-dashboard__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
}

.profile-dashboard__nav-button {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #555;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.profile-dashboard__nav-button:hover {
    background: #f7f7f7;
    color: #90b932;
}

.profile-dashboard__nav-button.is-active {
    background: rgba(180, 48, 132, .08);
    color: #b43084;
    font-weight: 600;
}

.profile-dashboard__main,
.profile-dashboard__panel,
.profile-dashboard__panel > .profile-orders,
.profile-dashboard__panel > .profile-recipes,
.profile-dashboard__panel > .profile-comments,
.profile-dashboard__panel > .profile-tickets {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.profile-dashboard__panel {
    display: none;
}

.profile-dashboard__panel.is-active {
    display: block;
}

.profile-dashboard__heading {
    margin-bottom: 20px;
}

.profile-dashboard__heading h2,
.profile-dashboard__section-heading h3 {
    margin: 0;
    color: #222;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
}

.profile-dashboard__heading h2 {
    font-size: clamp(24px, 3vw, 29px);
}

.profile-dashboard__section-heading h3 {
    font-size: 20px;
}

.profile-dashboard__cards {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 18px;
}

.profile-dashboard__card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.profile-dashboard__card--bonus {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(89, 126, 24, .2);
    border-radius: 22px;
    background: linear-gradient(135deg, #9bc63e 0%, #79a629 55%, #668f1f 100%);
    box-shadow: 0 18px 42px rgba(80, 111, 26, .2);
    color: #fff;
}

.profile-dashboard__card--bonus::before,
.profile-dashboard__card--bonus::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    content: '';
    pointer-events: none;
}

.profile-dashboard__card--bonus::before {
    width: 230px;
    height: 230px;
    right: -70px;
    top: -95px;
}

.profile-dashboard__card--bonus::after {
    width: 150px;
    height: 150px;
    right: 90px;
    bottom: -105px;
}

.profile-dashboard__card--bonus > * {
    position: relative;
    z-index: 1;
}

.profile-dashboard__eyebrow {
    margin-bottom: 13px;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.profile-dashboard__card--bonus .profile-dashboard__eyebrow,
.profile-dashboard__card--bonus .profile-dashboard__balance,
.profile-dashboard__card--bonus .profile-dashboard__expiration {
    color: #fff;
}

.profile-dashboard__balance {
    color: #222;
    font-family: 'Days', sans-serif;
    font-size: clamp(40px, 6vw, 62px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1;
}

.profile-dashboard__balance span {
    margin-left: 8px;
    font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}

.profile-dashboard__expiration {
    max-width: 540px;
    margin-top: 17px;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.profile-dashboard__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.profile-dashboard__button,
.profile-dashboard__link-button,
.profile-dashboard .promo-activate-btn,
.profile-dashboard .wholesale-request-btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}

.profile-dashboard__button:hover,
.profile-dashboard__link-button:hover {
    border-color: #b43084;
    color: #b43084;
}

.profile-dashboard__button--secondary {
    background: transparent;
}

.profile-dashboard__card--bonus .profile-dashboard__button {
    border-color: #fff;
    background: #fff;
    color: #333;
}

.profile-dashboard__card--bonus .profile-dashboard__button:hover {
    border-color: #b43084;
    background: #b43084;
    color: #fff;
}

.profile-dashboard__card--bonus .profile-dashboard__button--secondary {
    border-color: rgba(255, 255, 255, .78);
    background: transparent;
    color: #fff;
}

.profile-dashboard__card--bonus .profile-dashboard__button--secondary:hover {
    border-color: #fff;
    background: #fff;
    color: #333;
}

.profile-dashboard__status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
}

.profile-dashboard__status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.profile-dashboard__status-note {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
    line-height: 1.45;
}

.profile-dashboard .status-value {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 20px;
    background: #eee;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.profile-dashboard .status-value.status--approved {
    background: rgba(144, 185, 50, .15);
    color: #5c8a1f;
}

.profile-dashboard .status-value.status--pending {
    background: rgba(244, 204, 117, .3);
    color: #a97a0a;
}

.profile-dashboard .status-value.status--declined {
    background: rgba(192, 57, 43, .12);
    color: #c0392b;
}

.profile-dashboard .wholesale-request-btn,
.profile-dashboard .promo-activate-btn {
    border-color: #b43084;
    background: #b43084;
    color: #fff;
}

.profile-dashboard .wholesale-request-btn:hover,
.profile-dashboard .promo-activate-btn:hover {
    border-color: #8d2a69;
    background: #8d2a69;
    color: #fff;
}

.profile-dashboard__quick-actions,
.profile-dashboard__recent {
    width: 100%;
    margin-top: 30px;
}

.profile-dashboard__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.profile-dashboard__section-heading button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #90b932;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.profile-dashboard__section-heading button:hover {
    color: #b43084;
}

.profile-dashboard__quick-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-dashboard__quick-action {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.profile-dashboard__quick-action:hover {
    border-color: rgba(180, 48, 132, .45);
    color: #b43084;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.profile-dashboard__quick-action strong {
    font-size: 15px;
    font-weight: 600;
}

.profile-dashboard__quick-action span {
    color: #888;
    font-size: 13px;
    line-height: 1.35;
}

.profile-dashboard .promo-box {
    margin-top: 12px;
}

.profile-dashboard .promo-activate {
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
}

.profile-dashboard .promo-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-dashboard .promo-row {
    display: flex;
    gap: 8px;
}

.profile-dashboard .promo-code-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    outline: none;
}

.profile-dashboard .promo-code-input:focus {
    border-color: #b43084;
}

.profile-dashboard__recent-orders,
.profile-dashboard__recent-orders .profile-orders,
.profile-dashboard__recent-orders .profile-orders .items,
.profile-dashboard .profile-orders,
.profile-dashboard .profile-orders .items,
.profile-dashboard .profile-recipes,
.profile-dashboard .profile-recipes .items,
.profile-dashboard .profile-comments,
.profile-dashboard .profile-comments .items,
.profile-dashboard .profile-tickets {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.profile-dashboard__recent-orders .profile-orders .items,
.profile-dashboard .profile-orders .items {
    padding: 0;
}

.profile-dashboard__recent-orders .profile-order:nth-child(n+4) {
    display: none;
}

.profile-dashboard__recent-orders .profile-order {
    margin-bottom: 10px;
}

.profile-dashboard .profile-recipes .items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.profile-dashboard .profile-recipes .recipe-list.inprofile,
.profile-dashboard .profile-recipes .recipe-list.inprofile > a {
    width: 100%;
    box-sizing: border-box;
}

.profile-dashboard .profile-comments {
    max-width: none;
}

.profile-dashboard .profile-comments .items {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.profile-dashboard .profile-dashboard__comment {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
}

.profile-dashboard .profile-dashboard__comment .comment_content {
    width: 100%;
    box-sizing: border-box;
}

.profile-dashboard .profile-dashboard__comment .comment_detail {
    color: #888;
    text-decoration: none;
}

.profile-dashboard .profile-dashboard__comment .comment_detail:hover {
    color: #90b932;
}

.profile-dashboard .profile-dashboard__comment .comment-text p {
    margin-bottom: 0;
}

.profile-dashboard__panel[data-profile-panel]:not([data-profile-panel="overview"]) {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.profile-dashboard__public-intro {
    margin-bottom: 20px;
}

.profile-dashboard__identity-action:focus-visible,
.profile-dashboard__nav-button:focus-visible,
.profile-dashboard__button:focus-visible,
.profile-dashboard__link-button:focus-visible,
.profile-dashboard__quick-action:focus-visible,
.profile-dashboard__section-heading button:focus-visible,
.profile-dashboard .promo-activate-btn:focus-visible,
.profile-dashboard .promo-code-input:focus-visible,
.profile-dashboard .wholesale-request-btn:focus-visible {
    outline: 2px solid #b43084;
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .profile-dashboard__shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-dashboard__sidebar {
        position: static;
    }

    .profile-dashboard__identity {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 18px;
        align-items: center;
        text-align: left;
    }

    .profile-dashboard__avatar {
        margin: 0;
    }

    .profile-dashboard .avatar_thumbnail {
        width: 72px;
        height: 72px;
    }

    .profile-dashboard__identity-actions {
        margin: 0;
    }

    .profile-dashboard__nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 7px;
        scrollbar-width: thin;
    }

    .profile-dashboard__nav-button {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .profile-dashboard {
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .profile-dashboard__identity {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 18px;
    }

    .profile-dashboard__identity-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .profile-dashboard__heading {
        margin-bottom: 16px;
    }

    .profile-dashboard__heading h2 {
        font-size: 24px;
    }

    .profile-dashboard__section-heading h3 {
        font-size: 19px;
    }

    .profile-dashboard__card--bonus {
        min-height: 0;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .profile-dashboard__balance {
        font-size: 43px;
    }

    .profile-dashboard__balance span {
        display: block;
        margin: 8px 0 0;
    }

    .profile-dashboard__status {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .profile-dashboard__quick-grid {
        grid-template-columns: 1fr;
    }

    .profile-dashboard__quick-action {
        min-height: 74px;
    }

    .profile-dashboard .promo-row {
        flex-direction: column;
    }

    .profile-dashboard .promo-code-input,
    .profile-dashboard .promo-activate-btn {
        min-height: 42px;
    }

    .profile-dashboard .profile-recipes .items {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
