/* دکمهٔ تغییر تم در صفحات مستقل (ورود/حقوقی/خطا) — انتخاب کاربر، نه سیستم‌عامل */
.seraj-theme-toggle {
    position: fixed;
    top: 14px;
    inset-inline-end: 16px;
    z-index: 60;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid #efdcc0;
    background: #fff;
    color: #b45309;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(146, 100, 22, .15);
    transition: background .2s, color .2s, transform .15s;
}

.seraj-theme-toggle:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

.seraj-theme-toggle:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.seraj-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* نشان‌های لوکس: بوم به مرزِ نشان بریده شده و در ۲۰px هنوز ریز است */
.seraj-theme-toggle .theme-ic {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

html.dark .seraj-theme-toggle {
    background: #26221d;
    border-color: #3d372f;
    color: #f59e0b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

html.dark .seraj-theme-toggle:hover {
    background: #2f2a24;
}
