/* ---- Общие сбросы ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1f2933;
}

/* ---- Топбар ---- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 54px;
    background-color: #e4ecf4;
    border-bottom: 1px solid #d5e3f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 16px;
}

.topbar__left {
    display: flex;
    align-items: center;
    width: 240px;
}

.topbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0B1F33;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.topbar__logo-img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
    display: block;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f2933;
    font-weight: 500;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.15s;
}
.topbar__user:hover { background-color: #f3f4f6; }

.topbar__avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.topbar__avatar--placeholder {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: #0B1F33;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.topbar__logout-form { display: flex; }
.topbar__logout-btn {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.topbar__logout-btn:hover { background-color: #f3f4f6; color: #374151; }

.topbar__auth-link {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    color: #374151;
    transition: background-color 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.topbar__auth-link:hover { background-color: #f3f4f6; }
.topbar__auth-link--register {
    background-color: #0B1F33;
    color: #fff;
}
.topbar__auth-link--register:hover { background-color: #1a3a5c; }

/* ---- Layout ---- */
.layout {
    display: flex;
    margin-top: 54px;
    min-height: calc(100vh - 54px);
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 42px;
    left: 0;
    width: 240px;
    height: calc(100vh - 42px);
    background-color: #0b2a48;
    color: white;
    padding: 32px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 90;
}

/* ---- Навигация ---- */
.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.sidebar__nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar__nav a.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.sidebar-msg-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    line-height: 1;
}

/* ---- Колокольчик уведомлений ---- */
.notif-bell {
    position: relative;
}

.notif-bell__btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}
.notif-bell__btn:hover { background-color: #f3f4f6; }

.notif-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    overflow: hidden;
}

.notif-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.notif-panel__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.notif-panel__mark-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    padding: 0;
}
.notif-panel__mark-all:hover { color: #374151; }

.notif-panel__list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-loading, .notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.notif-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    transition: background-color 0.12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background-color: #f9fafb; }
.notif-item--unread {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}
.notif-item--unread:hover { background-color: #dbeafe; }

.notif-item__label {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 3px;
}
.notif-item__text {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Sidebar bottom / feedback ---- */
.sidebar__divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar__bottom {
    padding: 12px 4px 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 16px;
}
.sidebar__feedback-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s, color 0.15s;
}
.sidebar__feedback-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* ---- Feedback modal ---- */
.fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-overlay[hidden] { display: none; }

.fb-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}
.fb-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.fb-modal__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.fb-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #9ca3af;
    line-height: 1;
    padding: 2px 4px;
}
.fb-modal__close:hover { color: #374151; }

.fb-modal__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-select, .fb-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1f2933;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.fb-select:focus, .fb-textarea:focus { border-color: #3b82f6; }
.fb-textarea { resize: vertical; min-height: 110px; }

.fb-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    gap: 12px;
}
.fb-status {
    font-size: 13px;
    flex: 1;
}
.fb-submit {
    background: #0B1F33;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}
.fb-submit:hover { background: #1a3a5c; }
.fb-submit:disabled { opacity: 0.6; cursor: default; }

.fb-photos { display: flex; flex-direction: column; gap: 8px; }
.fb-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px dashed #c8d9ea;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    width: fit-content;
    transition: border-color 0.15s, color 0.15s;
}
.fb-photo-btn:hover { border-color: #0B1F33; color: #0B1F33; }
.fb-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fb-photo-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.fb-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fb-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.fb-photo-remove:hover { background: rgba(0,0,0,0.8); }

/* ---- Контент ---- */
.content {
    margin-left: 240px;
    flex: 1;
    padding: 32px;
    background-color: #f8fafc;
    min-height: calc(100vh - 42px);
}

/* ---- Страницы без сайдбара ---- */
.page--no-sidebar .sidebar { display: none !important; }
.page--no-sidebar .content { margin-left: 0; padding-left: 66px; }

/* ---- Logo short/full ---- */
.topbar__logo-short { display: none; }

/* Hide sidebar bottom for guests on desktop (only needed for mobile auth links) */
.sidebar__bottom--guest { display: none; }

/* ---- Desktop-only / Mobile-only helpers ---- */
.topbar-mobile-only { display: none !important; }

/* ---- Hamburger button ---- */
.topbar__hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}
.topbar__hamburger:hover { background-color: #f3f4f6; }

/* ---- Sidebar backdrop ---- */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0, 0, 0, 0.45);
}
.sidebar-backdrop--visible { display: block; }

/* ---- Sidebar mobile header (hidden on desktop) ---- */
.sidebar__mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 8px;
    flex-shrink: 0;
}
.sidebar__mobile-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.sidebar__close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
}
.sidebar__close-btn:hover { color: #fff; background-color: rgba(255,255,255,0.1); }

/* ---- Sidebar mobile context switcher (hidden on desktop) ---- */
.sidebar__mobile-ctx {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 8px;
    flex-shrink: 0;
}
.sidebar__ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.15s;
    font-family: inherit;
}
.sidebar__ctx-item:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
.sidebar__ctx-item--active { background-color: rgba(255,255,255,0.15); color: #fff; }
.sidebar__ctx-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar__ctx-avatar--placeholder {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar__ctx-name { flex: 1; }

/* ---- Sidebar bottom: mobile logout & auth (hidden on desktop) ---- */
.sidebar__mobile-logout { display: none; }
.sidebar__logout-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.15s, color 0.15s;
    margin-bottom: 8px;
}
.sidebar__logout-btn:hover { background-color: rgba(255,255,255,0.1); color: #fff; }

.sidebar__mobile-auth { display: none; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sidebar__auth-link {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background-color 0.15s;
}
.sidebar__auth-link:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
.sidebar__auth-link--register {
    background-color: rgba(255,255,255,0.15);
    border-color: transparent;
    color: #fff;
}
.sidebar__auth-link--register:hover { background-color: rgba(255,255,255,0.25); }

/* ================================================================
   MOBILE  (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {

    /* Topbar */
    .topbar { padding: 0 12px; }
    .topbar__left { width: auto; }
    .topbar__logo-full { display: none; }
    .topbar__logo-short { display: inline; font-size: 20px; font-weight: 700; color: #0B1F33; }
    .topbar-desktop-only { display: none !important; }
    .topbar-mobile-only { display: flex; }

    /* Notification panel full-width */
    .notif-panel {
        position: fixed;
        top: 42px;
        left: 8px;
        right: 8px;
        width: auto;
    }

    /* Content: full width, less padding */
    .content {
        margin-left: 0;
        padding: 16px;
    }

    /* Sidebar: hidden off-screen by default, slides in as overlay */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 90;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        padding: 0 0 20px;
        overflow-y: auto;
    }
    .sidebar--open {
        transform: translateX(0);
    }

    /* Show mobile-only sidebar sections */
    .sidebar__mobile-header { display: flex; }
    .sidebar__mobile-ctx { display: flex; }
    .sidebar__mobile-logout { display: block; }
    .sidebar__mobile-auth { display: flex; }
    .sidebar__bottom--guest { display: block; }

    /* Nav padding adjustment */
    .sidebar__nav { padding: 0 8px; }
    .sidebar__bottom { padding: 12px 16px 4px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px; }
}

/* ── Report modal ──────────────────────────────────────── */
.report-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.report-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
}
.report-modal__box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 14px;
    padding: 28px 28px 24px;
    width: min(480px, 92vw);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.report-modal__title {
    font-size: 18px; font-weight: 700;
    margin: 0 0 18px; color: #1f2933;
}
.report-modal__reasons {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 18px;
}
.report-modal__reason {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: #374151; cursor: pointer; line-height: 1.4;
}
.report-modal__reason input[type="radio"] {
    margin-top: 2px; flex-shrink: 0;
    accent-color: #0b4f7a;
}
.report-modal__comment-label {
    display: block; font-size: 13px; font-weight: 500;
    color: #374151; margin-bottom: 6px;
}
.report-modal__textarea {
    width: 100%; min-height: 72px; padding: 8px 10px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; font-family: inherit; resize: vertical;
    box-sizing: border-box;
}
.report-modal__textarea:focus {
    outline: none; border-color: #0b4f7a;
}
.report-modal__error {
    color: #dc2626; font-size: 13px; margin: 8px 0 0;
}
.report-modal__success {
    color: #16a34a; font-size: 14px; font-weight: 500; margin: 8px 0 0;
}
.report-modal__actions {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 20px;
}
.report-modal__cancel {
    padding: 8px 18px; border-radius: 8px;
    border: 1.5px solid #d1d5db; background: #fff;
    font-size: 14px; cursor: pointer; color: #374151;
}
.report-modal__cancel:hover { background: #f3f4f6; }
.report-modal__submit {
    padding: 8px 20px; border-radius: 8px;
    background: #0b4f7a; color: #fff;
    border: none; font-size: 14px; font-weight: 600; cursor: pointer;
}
.report-modal__submit:hover { background: #0d6199; }
.report-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.report-btn {
    background: none; border: none; padding: 0;
    font-size: 12px; color: #9ca3af; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.report-btn:hover { color: #dc2626; }

/* ===== Registration modal ===== */
.reg-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}
.reg-modal-overlay[hidden] { display: none; }

.reg-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 32px 36px 28px;
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 32px);
    overflow-y: auto;
}

.reg-modal-box--sm {
    max-width: 440px;
    height: auto;
    min-height: 300px;
    max-height: calc(100vh - 32px);
}

.reg-forgot-back {
    position: absolute;
    bottom: 20px;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font-family: inherit;
}
.reg-forgot-back:hover { color: #374151; }

.resend-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-family: inherit;
    text-decoration: underline;
    color: #9ca3af;
    cursor: default;
}
.resend-link:not(:disabled) {
    color: #3b82f6;
    cursor: pointer;
}

.reg-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.reg-modal-close:hover { color: #374151; background: #f3f4f6; }

.reg-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2933;
    margin: 0 0 20px;
}

.reg-modal-success-text {
    font-size: 15px;
    color: #166534;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 16px 18px;
    line-height: 1.55;
}

/* Form layout inside modal */
#reg-modal-form,
#login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reg-mf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reg-mf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.reg-mf-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.reg-mf-forgot {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: none;
}
.reg-mf-forgot:hover { color: #0b4f7a; text-decoration: underline; }

.reg-mf-field input,
.reg-mf-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2933;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.reg-mf-field input:focus,
.reg-mf-field select:focus {
    outline: none;
    border-color: #0b4f7a;
    box-shadow: 0 0 0 3px rgba(11, 79, 122, 0.1);
}

/* Two-column row (name / passwords) */
.reg-mf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Three-column geo */
.reg-mf-geo {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.reg-mf-hint {
    font-size: 12px;
    color: #9ca3af;
}

.reg-mf-error {
    font-size: 12px;
    color: #dc2626;
    min-height: 0;
}
.reg-mf-error:empty { display: none; }

.reg-mf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.reg-mf-login-hint {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}
.reg-mf-login-hint a {
    color: #0b4f7a;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
.reg-mf-login-hint a:hover { text-decoration: underline; }

/* Submit button (orange, matches "Применить") */
.reg-submit {
    padding: 9px 24px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.reg-submit:hover { background: #ea6c0b; }
.reg-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Optional label (gray, smaller) */
.reg-optional {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

@media (max-width: 560px) {
    .reg-modal-box { padding: 24px 20px 20px; }
    .reg-mf-row  { grid-template-columns: 1fr; }
    .reg-mf-geo  { grid-template-columns: 1fr; }
}
