/* PROFILE */
.profile-page {
    min-height: 100vh;
    background: var(--bg);
}

.profile-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.profile-eyebrow {
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Экран входа */
.profile-auth {
    min-height: calc(100vh - 72px);
    padding: 74px 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(220, 232, 238, .9), transparent 31%),
        linear-gradient(115deg, #f8fbfc 0%, #e8f0f3 100%);
}

.profile-auth__inner {
    width: min(1040px, 100%);
    min-height: 510px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
}

.profile-auth__intro h1 {
    max-width: 570px;
    margin-bottom: 18px;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.1;
}

.profile-auth__intro > p:not(.profile-eyebrow) {
    max-width: 510px;
    color: var(--text-mid);
    font-size: 17px;
    line-height: 1.65;
}

.profile-auth__features {
    display: grid;
    gap: 13px;
    margin-top: 32px;
}

.profile-auth__feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-mid);
    font-size: 15px;
}

.profile-auth__feature span {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c7d8df;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.profile-auth-card {
    padding: 34px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(45, 65, 78, .1);
}

.profile-auth-card__icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 10px;
    font-size: 23px;
}

.profile-auth-card h2 {
    margin-bottom: 8px;
    font-size: 25px;
    line-height: 1.25;
}

.profile-auth-card__text {
    margin-bottom: 25px;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.55;
}

.profile-form {
    display: grid;
    gap: 10px;
}

.profile-form label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.profile-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: var(--text-dark);
    background: #fbfcfd;
    border: 1px solid #cfdbe0;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.profile-form input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(84, 121, 140, .14);
}

.profile-form .profile-code-input {
    letter-spacing: .35em;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.profile-form__submit {
    width: 100%;
    min-height: 47px;
    margin-top: 10px;
    border: 0;
    font: inherit;
}

.profile-form__back {
    margin-top: 8px;
    color: var(--accent-dark);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.profile-form__back:hover {
    text-decoration: underline;
}

.profile-auth-card__note {
    margin-top: 22px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.profile-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.profile-alert p + p {
    margin-top: 5px;
}

.profile-alert--error {
    color: #843f39;
    background: #fff3f1;
    border-color: #efd0cb;
}

.profile-alert--success {
    color: #275c45;
    background: #edf7f1;
    border-color: #c7e4d1;
}

/* Страница профиля */
.profile-hero {
    padding: 55px 24px;
    background: linear-gradient(115deg, #f8fbfc 0%, #e6eff2 100%);
    border-bottom: 1px solid var(--border);
}

.profile-hero .profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.profile-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.1;
}

.profile-hero__text {
    color: var(--text-mid);
    font-size: 16px;
}

.profile-user-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-width: min(100%, 350px);
    padding: 15px 18px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #d4e0e4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(55, 74, 87, .06);
}

.profile-user-card__avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c7d8df;
    border-radius: 50%;
    font-size: 19px;
    font-weight: 700;
}

.profile-user-card__label {
    color: var(--text-light);
    font-size: 12px;
}

.profile-user-card strong {
    overflow: hidden;
    color: var(--text-dark);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-logout {
    grid-column: 2;
    margin-top: 5px;
    color: var(--accent-dark);
    font-size: 13px;
    text-decoration: none;
}

.profile-logout:hover {
    text-decoration: underline;
}

.profile-content {
    min-height: 440px;
    padding: 56px 24px 76px;
}

.profile-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.profile-section-heading h2 {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.2;
}

.profile-count {
    padding: 7px 11px;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.profile-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-product-card {
    display: flex;
    flex-direction: column;
    min-height: 276px;
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.profile-product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.profile-product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-product-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 10px;
    font-size: 21px;
}

.profile-status {
    padding: 5px 9px;
    color: #275c45;
    background: #edf7f1;
    border: 1px solid #c7e4d1;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.profile-product-card__content {
    flex: 1;
    padding: 23px 0;
}

.profile-product-card h3 {
    margin-bottom: 9px;
    font-size: 19px;
    line-height: 1.35;
}

.profile-product-card__content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.55;
}

.profile-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.profile-product-card__footer > span {
    color: var(--text-light);
    font-size: 12px;
}

.profile-empty {
    max-width: 670px;
    margin: 20px auto 0;
    padding: 46px 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.profile-empty__icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 50%;
    font-size: 26px;
}

.profile-empty h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.profile-empty p {
    max-width: 490px;
    margin: 0 auto 24px;
    color: var(--text-mid);
    font-size: 14px;
}

@media (max-width: 820px) {
    .profile-auth__inner {
        grid-template-columns: 1fr;
        max-width: 570px;
        gap: 38px;
    }

    .profile-auth__intro {
        text-align: center;
    }

    .profile-auth__intro > p:not(.profile-eyebrow) {
        margin-right: auto;
        margin-left: auto;
    }

    .profile-auth__features {
        justify-content: center;
    }

    .profile-hero .profile-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-user-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 650px) {
    .profile-container {
        width: min(100% - 32px, 1120px);
    }

    .profile-auth {
        padding: 44px 16px;
    }

    .profile-auth__intro h1 {
        font-size: 38px;
    }

    .profile-auth__intro > p:not(.profile-eyebrow) {
        font-size: 16px;
    }

    .profile-auth__features {
        align-items: start;
    }

    .profile-auth-card {
        padding: 25px 20px;
    }

    .profile-hero,
    .profile-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .profile-content {
        padding-top: 38px;
        padding-bottom: 50px;
    }

    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .profile-products-grid {
        grid-template-columns: 1fr;
    }

    .profile-product-card {
        min-height: auto;
        padding: 19px;
    }

    .profile-product-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-product-card__footer .btn-primary {
        width: 100%;
        text-align: center;
    }

    .profile-empty {
        padding: 35px 20px;
    }
}

/* ADMIN PROFILE */
.admin-page {
    min-height: 100vh;
    background: var(--bg);
}

.admin-hero {
    padding: 55px 24px;
    background:
        radial-gradient(circle at 75% 0%, rgba(220, 232, 238, .95), transparent 31%),
        linear-gradient(115deg, #f8fbfc 0%, #e6eff2 100%);
    border-bottom: 1px solid var(--border);
}

.admin-hero .profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.admin-hero h1 {
    margin-bottom: 9px;
    font-size: clamp(33px, 4vw, 46px);
    line-height: 1.12;
}

.admin-content {
    padding: 34px 24px 76px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 42px;
    padding: 8px;
    overflow-x: auto;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 5px 18px rgba(30, 50, 70, .03);
}

.admin-nav__link {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: var(--text-mid);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
    color: var(--accent-dark);
    background: var(--accent-light);
}

.admin-section + .admin-section {
    margin-top: 60px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.admin-stat-card__icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 9px;
    font-weight: 700;
}

.admin-stat-card p {
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 13px;
}

.admin-stat-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 26px;
    line-height: 1.2;
}

.admin-stat-card small {
    display: block;
    margin-top: 8px;
    color: #4d8268;
    font-size: 11px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.admin-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 13px;
}

.admin-table th {
    color: var(--text-light);
    background: #f8fafb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-table td {
    color: var(--text-mid);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #fbfcfd;
}

.admin-status {
    display: inline-block;
    padding: 5px 9px;
    color: #275c45;
    background: #edf7f1;
    border: 1px solid #c7e4d1;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-promo-card,
.admin-promo-create {
    min-height: 215px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.admin-promo-card {
    display: flex;
    flex-direction: column;
}

.admin-promo-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-promo-card__header > strong {
    color: var(--accent-dark);
    font-size: 15px;
    letter-spacing: .06em;
}

.admin-promo-card__discount {
    margin: 22px 0;
    color: var(--text-dark);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.admin-promo-card__details {
    display: grid;
    gap: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.admin-promo-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.admin-link-button {
    padding: 0;
    color: #9b564c;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.admin-promo-create {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, .5);
    border: 1px dashed #afc2cb;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease;
}

.admin-promo-create:hover {
    background: var(--white);
    border-color: var(--accent);
}

.admin-promo-create span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 400;
}

.admin-actions-grid {
    display: grid;
    gap: 12px;
}

.admin-action-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.admin-action-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 9px;
    font-size: 19px;
}

.admin-action-card h3 {
    margin-bottom: 3px;
    font-size: 16px;
}

.admin-action-card p {
    color: var(--text-light);
    font-size: 13px;
}

.admin-site-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-site-card {
    display: block;
    min-height: 195px;
    padding: 21px;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-site-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.admin-site-card__icon {
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid #c9dce5;
    border-radius: 9px;
    font-size: 18px;
}

.admin-site-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.admin-site-card p {
    min-height: 43px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}

.admin-site-card > span:last-child {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
}

/* Форма создания промокода */
.admin-promo-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-promo-form {
    display: grid;
    gap: 10px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, .04);
}

.admin-promo-form h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 19px;
}

.admin-promo-form > p {
    margin: 0 0 8px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}

.admin-promo-form label {
    margin-top: 3px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}

.admin-promo-form label span {
    color: var(--text-light);
    font-weight: 400;
}

.admin-promo-form input {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    color: var(--text-dark);
    background: #fbfcfd;
    border: 1px solid #cfdbe0;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}

.admin-promo-form input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(84, 121, 140, .14);
}

.admin-promo-form .btn-primary {
    width: 100%;
    min-height: 43px;
    margin-top: 8px;
    border: 0;
    font: inherit;
}

.admin-promo-card__actions form {
    margin: 0;
}

.admin-promo-card__actions .btn-outline {
    min-height: 32px;
}

@media (max-width: 980px) {
    .admin-promo-layout {
        grid-template-columns: 1fr;
    }

    .admin-promo-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .admin-promo-form h3,
    .admin-promo-form > p,
    .admin-promo-form .btn-primary {
        grid-column: 1 / -1;
    }
} 

@media (max-width: 980px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-site-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .admin-hero,
    .admin-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .admin-hero .profile-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-content {
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .admin-nav {
        margin-bottom: 33px;
    }

    .admin-section + .admin-section {
        margin-top: 46px;
    }

    .admin-stats-grid,
    .admin-promo-grid {
        grid-template-columns: 1fr;
    }

    .admin-action-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .admin-action-card .btn-outline {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .admin-table {
        min-width: 700px;
    }
}

@media (max-width: 520px) {
    .profile-container {
        width: 100%;
    }

    .profile-auth {
        min-height: calc(100svh - 56px);
        padding: 32px 16px;
    }

    .profile-auth__inner {
        min-height: 0;
        gap: 26px;
    }

    .profile-auth__intro h1,
    .profile-hero h1,
    .admin-hero h1 {
        font-size: 32px;
        overflow-wrap: anywhere;
    }

    .profile-auth__features {
        gap: 10px;
        margin-top: 22px;
    }

    .profile-auth__feature {
        align-items: flex-start;
        text-align: left;
    }

    .profile-auth__feature span {
        flex: 0 0 23px;
    }

    .profile-auth-card {
        padding: 22px 16px;
        border-radius: 10px;
    }

    .profile-hero,
    .profile-content,
    .admin-hero,
    .admin-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .profile-user-card {
        min-width: 0;
        width: 100%;
        padding: 13px;
    }

    .profile-section-heading h2 {
        overflow-wrap: anywhere;
    }

    .profile-product-card__footer {
        align-items: stretch;
    }

    .profile-product-card__footer > span {
        overflow-wrap: anywhere;
    }

    .admin-hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .admin-hero .profile-container {
        gap: 20px;
    }

    .admin-nav {
        gap: 4px;
        margin-right: -16px;
        margin-left: -16px;
        padding: 6px 12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        scrollbar-width: thin;
    }

    .admin-content .profile-container {
        width: 100%;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stat-card {
        min-width: 0;
        padding: 14px 12px;
    }

    .admin-stat-card strong {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .admin-stat-card small {
        line-height: 1.4;
    }

    .admin-promo-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-promo-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 17px;
    }

    .admin-promo-form h3,
    .admin-promo-form > p,
    .admin-promo-form .btn-primary {
        grid-column: auto;
    }

    .admin-promo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-promo-card {
        min-width: 0;
        padding: 17px;
    }

    .admin-promo-card__header {
        flex-wrap: wrap;
    }

    .admin-promo-card__header > strong {
        overflow-wrap: anywhere;
    }

    .admin-promo-card__actions {
        flex-wrap: wrap;
    }

    .admin-table-wrap {
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 650px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .admin-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-count {
        max-width: 100%;
        white-space: normal;
    }
}

.admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
    animation: admin-toast-in 180ms ease-out;
}

.admin-toast--success {
    border-color: #8bc9a4;
    color: #176b3a;
}

.admin-toast--error {
    border-color: #e5a1a1;
    color: #a12626;
}

@keyframes admin-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .admin-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

.admin-pages-table {
    min-width: 1080px;
}

.admin-page-url {
    color: var(--accent-dark);
    text-decoration: none;
    white-space: nowrap;
}

.admin-page-url:hover {
    text-decoration: underline;
}

.admin-status--locked {
    color: #843f39;
    background: #fff3f1;
    border-color: #efd0cb;
}

@media (max-width: 650px) {
    .admin-pages-table {
        min-width: 980px;
    }
}