.site-nav__link--accent {
    color: #080808;
    background: linear-gradient(135deg, #ffffff, #a9ff78 52%, var(--accent));
}

.site-nav__link--accent:hover,
.site-nav__link--accent.is-active {
    color: #080808;
    background: linear-gradient(135deg, #ffffff, #a9ff78 48%, #ff9a3d);
}

.site-nav__role {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    color: #a9ff78;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(169, 255, 120, 0.12);
}

.nav-form {
    margin: 0;
}

.site-nav__button {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-nav__button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.flash-stack {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.alert a {
    text-decoration: underline;
}

.alert--success {
    color: #d8ffd1;
    background: rgba(91, 184, 126, 0.18);
    border-color: rgba(216, 255, 209, 0.14);
}

.alert--error {
    color: #ffd1c1;
    background: rgba(218, 107, 61, 0.16);
    border-color: rgba(255, 209, 193, 0.14);
}

.alert--info {
    color: #ccefff;
    background: rgba(84, 158, 182, 0.16);
    border-color: rgba(204, 239, 255, 0.14);
}

.alert--warning {
    color: #ffe3b6;
    background: rgba(232, 180, 84, 0.2);
    border-color: rgba(255, 227, 182, 0.16);
}

.auth-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 118px);
    padding: clamp(54px, 7vw, 92px) 0 clamp(64px, 8vw, 110px);
    color: #071033;
    background: #ffffff;
}

.auth-page__grid-bg,
.auth-page__glow {
    position: absolute;
    pointer-events: none;
}

.auth-page__grid-bg {
    inset: 0;
    z-index: -3;
    display: none;
}

.auth-page__glow {
    z-index: -2;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(6px);
}

.auth-page__glow--blue {
    right: -120px;
    top: 72px;
    display: none;
}

.auth-page__glow--teal {
    left: -140px;
    bottom: -120px;
    display: none;
}

.auth-page__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: clamp(32px, 7vw, 96px);
    align-items: center;
    width: min(100% - 2rem, 1180px);
}

.auth-page__content {
    max-width: 650px;
}

.auth-page__content .section__eyebrow {
    margin: 0 0 14px;
    color: #3156ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-page__content .section__title {
    margin: 0;
    color: #071033;
    font-size: clamp(2.45rem, 5vw, 4.65rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
    text-shadow: 0 9px 24px rgba(16, 25, 68, 0.08);
}

.auth-page__content .section__lead {
    max-width: 560px;
    margin: 22px 0 0;
    color: #4a5878;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.62;
}

.auth-page__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.auth-page__features span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(207, 214, 244, 0.82);
    border-radius: 12px;
    color: #3156ff;
    font-size: 0.9rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(56, 67, 132, 0.07);
}

.auth-card,
.dashboard-card {
    border: 1px solid rgba(214, 220, 246, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 70px rgba(56, 67, 132, 0.14);
    backdrop-filter: blur(16px);
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 24px;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #3156ff, #18b6aa, #ffb03a);
}

.auth-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-card__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #3156ff, #18b6aa);
    box-shadow: 0 16px 30px rgba(49, 86, 255, 0.2);
}

.auth-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.auth-card__head h2 {
    margin: 0;
    color: #071033;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-card__head p {
    margin: 5px 0 0;
    color: #617093;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form__submit {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f70ff 0%, #263cff 62%, #4a2cff 100%);
    box-shadow: 0 18px 36px rgba(47, 76, 255, 0.25);
}

.auth-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(47, 76, 255, 0.32);
}

.auth-form__notice {
    margin: -2px 0 0;
    color: #617093;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-form__notice a {
    color: #3156ff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.auth-card__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.auth-card__links a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(207, 214, 244, 0.76);
    border-radius: 14px;
    color: #3156ff;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    background: rgba(49, 86, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-card__links a:hover {
    border-color: rgba(49, 86, 255, 0.28);
    background: rgba(49, 86, 255, 0.1);
    transform: translateY(-1px);
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    color: #071033;
    font-size: 0.94rem;
    font-weight: 800;
}

.form-input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(190, 199, 234, 0.82);
    border-radius: 16px;
    color: #071033;
    font: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    outline: 0;
    border-color: rgba(49, 86, 255, 0.48);
    box-shadow: 0 0 0 4px rgba(49, 86, 255, 0.12);
    background: #ffffff;
}

.form-input.is-invalid {
    border-color: rgba(220, 72, 72, 0.62);
    background: rgba(255, 245, 245, 0.92);
    box-shadow: 0 0 0 4px rgba(220, 72, 72, 0.1);
}

.form-error {
    margin: 0;
    color: #c93737;
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-page {
    padding-top: 3rem;
}

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

.dashboard-card h2 {
    margin: 0 0 1rem;
    font-weight: 800;
}

.dashboard-card__text {
    margin: 0 0 1.1rem;
    color: var(--muted);
}

.dashboard-meta {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.dashboard-meta div {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.dashboard-meta dt {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-meta dd {
    margin: 0;
    font-weight: 700;
}

.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 960px) {
    .auth-page__grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-page {
        min-height: auto;
        padding: 44px 0 64px;
    }

    .auth-page__grid {
        gap: 28px;
    }

    .auth-page__content {
        text-align: center;
        justify-self: center;
    }

    .auth-page__content .section__lead {
        margin-right: auto;
        margin-left: auto;
    }

    .auth-page__features {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .site-nav__role,
    .nav-form,
    .site-nav__button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .auth-page__grid {
        width: min(100% - 1.2rem, 1180px);
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .auth-card__head {
        align-items: flex-start;
    }

    .auth-card__links {
        grid-template-columns: 1fr;
    }

    .form-input,
    .auth-form__submit {
        min-height: 54px;
        border-radius: 14px;
    }
}

.site-nav__role {
    min-height: 46px;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(24, 182, 170, 0.22);
    border-radius: 12px;
    color: #0b746c;
    background: rgba(24, 182, 170, 0.1);
}

.site-nav__button {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(190, 199, 234, 0.82);
    border-radius: 12px;
    color: #071033;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.site-nav__button:hover {
    color: #3156ff;
    border-color: rgba(49, 86, 255, 0.28);
    background: #ffffff;
}

.dashboard-page--rich {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 6vw, 82px) 0 clamp(72px, 8vw, 110px);
    color: #071033;
    background:
        radial-gradient(circle at 8% 18%, rgba(49, 86, 255, 0.12), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(24, 182, 170, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 52%, #ffffff 100%);
}

.dashboard-hero,
.dashboard-panel,
.dashboard-stat-card {
    border: 1px solid rgba(207, 214, 244, 0.86);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 58px rgba(56, 67, 132, 0.12);
    backdrop-filter: blur(18px);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(20px, 4vw, 46px);
    align-items: end;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #3156ff, #18b6aa, #ffb03a);
}

.dashboard-hero__content {
    max-width: 760px;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.dashboard-hero__profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(207, 214, 244, 0.78);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(49, 86, 255, 0.08), rgba(24, 182, 170, 0.08));
}

.dashboard-hero__profile strong,
.dashboard-hero__profile span {
    display: block;
}

.dashboard-hero__profile strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-hero__profile span:not(.dashboard-role) {
    margin-top: 4px;
    color: #617093;
    font-size: 0.92rem;
}

.dashboard-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #3156ff, #18b6aa);
    box-shadow: 0 16px 34px rgba(49, 86, 255, 0.22);
}

.dashboard-role {
    grid-column: 1 / -1;
    width: max-content;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #0b746c;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(24, 182, 170, 0.12);
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 20px;
    border-radius: 20px;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    opacity: 0.16;
    background: currentColor;
}

.dashboard-stat-card span {
    color: #617093;
    font-size: 0.9rem;
    font-weight: 800;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #071033;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1;
}

.dashboard-stat-card p {
    margin: 10px 0 0;
    color: #617093;
    font-size: 0.9rem;
    line-height: 1.42;
}

.dashboard-stat-card--blue { color: #3156ff; }
.dashboard-stat-card--teal { color: #18b6aa; }
.dashboard-stat-card--green { color: #20a66f; }
.dashboard-stat-card--orange { color: #ff9a2f; }

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.dashboard-layout--bottom {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.dashboard-panel {
    padding: clamp(22px, 3vw, 30px);
    border-radius: 22px;
}

.dashboard-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-panel__head h2 {
    margin: 0;
    color: #071033;
    font-size: 1.35rem;
    font-weight: 900;
}

.dashboard-panel__head p {
    margin: 4px 0 0;
    color: #617093;
}

.dashboard-panel__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #3156ff;
    background: rgba(49, 86, 255, 0.1);
}

.dashboard-panel__icon--teal { color: #18b6aa; background: rgba(24, 182, 170, 0.12); }
.dashboard-panel__icon--orange { color: #ff9a2f; background: rgba(255, 154, 47, 0.12); }
.dashboard-panel__icon--violet { color: #7048ff; background: rgba(112, 72, 255, 0.11); }

.dashboard-panel__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-meta--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-meta--cards div {
    padding: 14px;
    border: 1px solid rgba(207, 214, 244, 0.72);
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.78);
}

.dashboard-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-focus-list div,
.dashboard-empty-state {
    padding: 15px;
    border: 1px solid rgba(207, 214, 244, 0.72);
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.78);
}

.dashboard-focus-list span {
    display: block;
    color: #617093;
    font-size: 0.86rem;
    font-weight: 800;
}

.dashboard-focus-list strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 900;
}

.dashboard-progress,
.dashboard-progress span {
    height: 12px;
    border-radius: 999px;
}

.dashboard-progress {
    overflow: hidden;
    margin: 22px 0 14px;
    background: #e8edff;
}

.dashboard-progress span {
    display: block;
    width: var(--value);
    background: linear-gradient(90deg, #3156ff, #18b6aa);
}

.dashboard-order-preview-list {
    display: grid;
    gap: 10px;
}

.dashboard-order-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(207, 214, 244, 0.72);
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.78);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-order-preview:hover {
    border-color: rgba(49, 86, 255, 0.28);
    transform: translateY(-1px);
}

.dashboard-order-preview span {
    display: grid;
    gap: 4px;
    color: #071033;
    font-weight: 800;
}

.dashboard-order-preview b {
    color: #3156ff;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.dashboard-order-preview .status-badge {
    min-height: 34px;
    font-style: normal;
    white-space: nowrap;
}

.dashboard-empty-state strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 900;
}

.dashboard-empty-state p {
    margin: 0;
    color: #617093;
}

.dashboard-panel__button {
    margin-top: 18px;
}

.dashboard-access-grid {
    display: grid;
    gap: 10px;
}

.dashboard-access-grid a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid rgba(207, 214, 244, 0.72);
    border-radius: 14px;
    color: #3156ff;
    font-weight: 900;
    background: rgba(49, 86, 255, 0.06);
}

.dashboard-access-grid a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (max-width: 1080px) {
    .dashboard-stat-grid,
    .dashboard-layout,
    .dashboard-layout--bottom,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-meta--cards,
    .dashboard-focus-list,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-order-preview,
    .dashboard-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-hero,
    .dashboard-panel {
        border-radius: 18px;
    }
}
