.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.admin-access {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(102, 126, 234, .28);
    border-radius: 50%;
    color: var(--primary);
    background: rgba(102, 126, 234, .07);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.tkp-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(91, 108, 255, .35);
    border-radius: 999px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tkp-access:hover,
.tkp-access:focus-visible { border-color: #5b6cff; color: #5b6cff; }

.tkp-modal[hidden] { display: none; }
.tkp-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 20px; }
.tkp-modal__overlay { position: absolute; inset: 0; background: rgba(10, 14, 28, .72); }
.tkp-modal__dialog { position: relative; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; border-radius: 24px; background: #fff; color: #151a2d; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.tkp-modal__dialog h2 { margin: 8px 0 12px; }
.tkp-modal__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.tkp-form { display: grid; gap: 10px; margin-top: 20px; }
.tkp-form > input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cdd2e4; border-radius: 12px; font: inherit; }
.tkp-form__check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; }
.tkp-form__check input { margin-top: 3px; }
.tkp-form__error { margin: 0; color: #b42318; font-weight: 600; }
.modal-open { overflow: hidden; }

@media (max-width: 900px) {
    .header-actions > .tkp-access { display: none; }
    .mobile-nav .tkp-access { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 480px) {
    .tkp-modal { padding: 10px; }
    .tkp-modal__dialog { padding: 26px 18px 20px; border-radius: 18px; }
}

.admin-access svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-access:hover {
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-1px);
}

.admin-access:focus-visible {
    outline: 3px solid rgba(102, 126, 234, .35);
    outline-offset: 3px;
}

body.admin-login-modal-open {
    overflow: hidden;
}

.admin-login-modal[hidden] {
    display: none;
}

.admin-login-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(20, 24, 38, .58);
    backdrop-filter: blur(3px);
}

.admin-login-modal__dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(102, 126, 234, .2);
    border-radius: 18px;
    color: var(--text);
    background: var(--white);
    box-shadow: 0 24px 70px rgba(20, 24, 38, .28);
}

.admin-login-modal__dialog h2 {
    margin: 0 42px 22px 0;
    color: var(--dark);
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    line-height: 1.2;
}

.admin-login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--gray);
    background: transparent;
    font: 400 30px/1 var(--font-stack);
    cursor: pointer;
}

.admin-login-modal__close:hover {
    color: var(--dark);
    background: var(--light);
}

.admin-login-modal__form {
    display: grid;
    gap: 9px;
}

.admin-login-modal__form label {
    margin-top: 5px;
    color: var(--text);
    font-weight: 650;
}

.admin-login-modal__form input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cfd5df;
    border-radius: var(--radius);
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.admin-login-modal__form input:focus-visible,
.admin-login-modal__close:focus-visible,
.admin-login-modal__password-toggle:focus-visible,
.admin-login-modal__submit:focus-visible {
    outline: 3px solid rgba(102, 126, 234, .32);
    outline-offset: 2px;
}

.admin-login-modal__password {
    position: relative;
    min-width: 0;
}

.admin-login-modal__password input {
    padding-right: 52px;
}

.admin-login-modal__password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border: 0;
    border-left: 1px solid #d7dce5;
    border-radius: 0 7px 7px 0;
    color: var(--secondary);
    background: #f7f8fb;
    cursor: pointer;
}

.admin-login-modal__password-toggle:hover {
    color: var(--white);
    background: var(--secondary);
}

.admin-login-modal__password-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-login-modal__password-icon[hidden] {
    display: none;
}

.admin-login-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 11px 18px;
    border: 0;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--primary);
    font: 700 1rem/1.2 var(--font-stack);
    cursor: pointer;
}

.admin-login-modal__submit:hover {
    background: var(--secondary);
}

.admin-login-modal__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.admin-login-modal__error {
    margin-bottom: 13px;
    padding: 11px 13px;
    border-radius: var(--radius);
    color: #a52218;
    background: #feeceb;
    font-size: .92rem;
}

@media (max-width: 768px) {
    .header-actions { gap: 9px; }
    .admin-access { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .logo img { margin-bottom: 0; }
    .header-actions .burger { position: static; top: auto; right: auto; }
    .admin-login-modal { align-items: flex-start; padding: 16px; }
    .admin-login-modal__dialog { padding: 24px 20px; }
}
